Webstorm 102-206 debugging breaks console in Firefox
I'm trying to get started with the integrated debugger, but can't get console.log working.
Here's a simple test case:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Playground</title>
</head>
<body>
<h1>test page</h1>
<script type="text/javascript">
console.log("hello");
</script>
</body>
</html>
This page works well in Firefox and the console.log is doing what it should.
As soon as the Jetbrains Firefox extension 0.4.2 is enabled, both Firebug and the Debug console inside Webstorm produces a:
console is not defined (http://localhost/CorasWorksApps/Test.html:9)
Is there anything that I'm missing when enabling debug support?
Thanks,
Rainer
Please sign in to leave a comment.
Have a look at these links -- maybe they will give you some hints:
http://devnet.jetbrains.net/message/5281217#5281217
http://youtrack.jetbrains.net/issue/IDEA-61656
Thanks for the quick feedback.
Anything else what I could check?
Thanks,
Rainer
Unfortunately I'm not using Php/WebStorm for JavaScript debugging, so I cannot give you any good advice except: Try brand new/separate Firefox profile with little (or none at all) additional extensions. :|
Thanks for the tip.
I've created a new Firefox profile and disabled all plug-ins, but the only effect is that no longer an error message is thrown in the debugger console window.
Unfortunately I don't see the console.log result either.
Is somebody using the JavaScript debugger in combination with console.log successfully?
Thanks,
Rainer
When JavaScript debugger is started it disables Firebug console tab to prevent clashes because they uses the same Firefox API. So console.log() doesn't work while JavaScript debugger is active. However if you stop the debugger from WebStorm and enable Firebug console tab again it should work as expected.
We have a feature request to support 'console' object in JetBrains extension: http://youtrack.jetbrains.net/issue/IDEA-55311
Thanks Nikolay,
Looks like I don't need to bang my head against this any longer ;-). I voted for this feature request and wait to see it implement in one of the upcoming version.
Keep up the good work.
Rainer