Forum Discussion

WilliamRyan-dba's avatar
WilliamRyan-dba
Community Member
15 days ago

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... 

  • 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.

     

  • 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).