Debugging Client Scripts for Custom Forms So with...
# suitescript
j
Debugging Client Scripts for Custom Forms So with SuiteScript 1.0 I would often use the Dev Console in Chrome to make minor tweaks to my client scripts in Custom Forms so I could test various things out without having to reupload the script file and reload the page for every little console.log(‘we made it here’); With SS2.0, I can’t seem to find the files in the dev tool to edit them on-the-fly. Any suggestions?
r
you need to put the statement debugger; in your client code. if you have the developer console open, it will stop at that line
j
Thanks @rustyshackles does that allow you to do in-browser edits of the source JS files and test things without reloading the page?
r
Not sure, I haven't tried that
j
That’s really the main thing I use it for. Like if I have a typo or I want to add console.log on the fly so I can see what values are at certain times.