How to debug WebApp Builder startup function with VS Code

733
1
Jump to solution
07-29-2021 07:06 AM
Ming
by
Occasional Contributor

Hi,

I am working on a project with ArcGIS WebApp Builder that needs to integrate the Query widget, Infographic widget and Screening widget together, so try to debug the postCreate and startup functions of those widgets with VS Code then can understand how it works.

But the VS Code doesn’t stop at those breakpoints for postCreate and startup functions which belong to the life cycle of digit, so now can only debug the onOpen or onClose function that belongs to the widget itself.

Any idea/experience/suggestion will be helpful!

0 Kudos
1 Solution

Accepted Solutions
Ming
by
Occasional Contributor

Problem solved, with Chrome debugger https://developer.chrome.com/docs/devtools/javascript/

or Firefox debugger https://developer.mozilla.org/en-US/docs/Tools/Debugger

now can debug the startup function before the widget shows up.

Ming_0-1627572360282.png

 

View solution in original post

0 Kudos
1 Reply
Ming
by
Occasional Contributor

Problem solved, with Chrome debugger https://developer.chrome.com/docs/devtools/javascript/

or Firefox debugger https://developer.mozilla.org/en-US/docs/Tools/Debugger

now can debug the startup function before the widget shows up.

Ming_0-1627572360282.png

 

0 Kudos