I can use chrome’s “inspect element” feature to view and debug my javascript, but only if it has successfully loaded. If the script has a parsing error then it doesn’t load and isn’t shown via “inspect element”.
How can I get chrome to show me its attempt to parse my script and a list of errors it has encountered?
I’m a newb to both chrome extensions and javascript, so apologies if I’m missing something obvious.
In the toolbar at the top of the Web Inspector (the window/pane that pops up when you “Inspect Element”) click on the right-most button/tab, “Console,” as seen here:
Not only will this show you all of the errors the page generates (JavaScript and others), it’s also a full JavaScript REPL so you can interact with the page by entering any JavaScript you want.