简体   繁体   中英

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

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM