Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
Use these methods to debug errors that have stopped Mobile Documents from being processed, including for your custom development.
Use the debugger to:
View the erroring code and navigate the callstack
Set breakpoints before the error occurs
This page only provides an overview. Please refer to the MS documentation.
Prerequisites
Info |
---|
Debugging BC Online requires a Sandbox. Copy your Production environment to a Sandbox as needed. |
Attach and Debug (
ReprocessRe-process existing requests)
Use this method to re-process existing erroneous Mobile Documents and view the erroring code.
Steps
Open Business Central Online as a Sandbox environment
Select ❔ in the top right-hand corner
Select "Help & Support"
Select "Attach debugger to this session"
Start “Regular Debugging” in Visual Studio Code
Use the Mobile Document Queue to Process the document with the error. See Debugging
Attach and Debug-Next Webservice (Catch requests before processing)
Use this method when you need to debug before a Commit happens.
Info |
---|
This requires a mobile device connected to the sandbox. |
Steps
Perform the steps from Attach and Debug section
Modify the launch.json file:
Delete
sessionId
Change
breakOnNext
to"WebServiceClient"
Start debugging
Wait for the console mesage message
Debugger will attach to the next session of type WebServiceClient
Trigger the error from the mobile device
See also
Filter by label (Content by label) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|