Forum Discussion
WilliamRyan-dba
2 months agoCommunity Member
Step through JavaScript
Hi All,
I'm new to JavaScript, but have extensive experience with VBA. In Preview mode, is it possible to step through JavaScript code? How to do it? I hope this is not too stupid a question... Thanks in advance...
- PhilMayorSuper Hero
Get used to using the console to look for errors.
One common way to debug is to use console.log() to inspect values at specific points or add in alerts.
Also it maybe better to use break points for event listeners. In the sources section you can step through each function.
- WilliamRyan-dbaCommunity Member
Is there a resource you can point me to, how to do so? When I open the Inspect window, it shows information about the web page, but not the code I'm looking for (e.g., the code that's behind a button, for example).