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

0
6 comments

Thanks for the quick feedback.

  • The page is deliverd with local IIS, so Firefox is not in offline mode
  • Not that that would be an option ;-), but I disabled Firebug restarted and still the the error message in the debugger console
  • Updated to 103.8 in the meantime, but that doesn't help either

Anything else what I could check?

Thanks,

Rainer

0

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

0

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

0

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

0

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

0

Please sign in to leave a comment.