Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm debug javascript stopped and disconnected so fast

I'm using WebStorm (8.0.4) in a Mac (Mavericks last version). I'm trying to debug this simple loop for script:

<!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
    <script type="text/javascript">
        for(var i=0;i<10; i++)
        {
            console.log('hola!');
        }

    </script>
    </body>
    </html>

I am using Chrome with JB Extension with this configuration:

Host: 127.0.0.1 Port: 63342

In the settings of the Project, in Javascript, Debugger I have this configuration:

Built-in server port: 63342

The code STOP in the breakpoint (in the loop for), but after one second, I have a message that says:

Disconnected (browser disconnected)

and I lost the debug mode...

I'm very lost and I don't know what happens... any help please?

Regards

like image 635
chemitaxis Avatar asked Oct 15 '14 12:10

chemitaxis


2 Answers

I had the same problem. Debugging stopped after 1 second

Two things I changed:

  • Downloaded the latest version of WebStorm (8.05)
  • Before the debug opened the configuration and looked at all pages and save it.

After this, it just worked again.

like image 107
Toxus Avatar answered Sep 29 '22 05:09

Toxus


The issue is caused by Chrome update. Chrome API changes in versions 37+ have made it incompatible with WebStorm debugger. WEB-12418 is fixed in WebStorm 8.0.5 and WebStorm 9 EAP.

like image 34
lena Avatar answered Sep 29 '22 07:09

lena