You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/includes/_debugging.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,14 @@ When developing an integration, it's helpful to know if the API is doing what yo
17
17
18
18
`?_integrationMode=debug`
19
19
20
-
This will allow the API to output some log messages to your browser's console regarding the actions it is taking. Additionally, you can instrument your own integration with log messages to validate that the expected code is being executed and desired code paths are being followed.
20
+
This will allow the API to output some log messages to your browser's console regarding the actions it is taking.
21
21
22
-
To log messages from within your integration code, simply use the `API.log` method the same way you would use `console.log`. Those messages will be output to your console when the above URL parameter is present and will be suppressed when it is not.
22
+
For more verbose logging, use this combination of URL parameters:
This will output more information about the actions being taken in your script to the browser console so you can more easily see what actions are happening. You can easily filter the browser console to show only these messages by typing `Web Integration API` into the `filter` field in your browser.
27
+
28
+
Additionally, you can instrument your own integration with log messages to validate that the expected code is being executed and desired code paths are being followed.
29
+
30
+
To log messages from within your integration code, simply use the `API.log` method the same way you would use `console.log`. Those messages will be output to your console when the above URL parameter is present and will be suppressed when it is not.
0 commit comments