
Var test = document.getElementById('test') However, the console.log does not output into the PHPStorm console - which I think is a known issue. if I click an element with an onclick function. PHPStorm responds as I use the browser, e.g. If I debug JavaScript by selecting 'Inspect in PHPStorm' from the JetBrains chrome plugin, I can put breakpoints in my Javascript and step through them no problem.

I've set my debugging configuration and specified the URL.

I am having trouble debugging with Javascript, in the sense that PHPStorm will happily step through JavaScript run on browser-load, but not JavaScript run by browser action after the browser load - for example clicking an element with an 'onclick' function.
