Webstorm breakpoints dont work within window.setTimeout or window.setInterval

I searched the forums and found people reporting issues on Webstorm 6.0 debugging.

With Webstorm 6.0, Chrome, breakpoints dont work if inside setTimeout (likely setInterval either)

Example test case:


window.setTimeout( function() {
   console.log("Try and set a breakpoint here.  It wont work.  You need to use debugger; code statement in chrome");

}, 0);


I use Webstorm to develop daily to develop a lot of graphics and annimations with Canvas and HTML5.  Fixing this issue is critical for me.  Thx.

P.S.  Hint.  If it will help prioritize this, we have over 20 licenses at my company.  We evangilize Webstorm!

1 comment
Comment actions Permalink

Hi Erik,

this works for me. My test files:
test.js

console.log("one");
window.setTimeout( function() {
    console.log("Try and set a breakpoint here.  It wont work.  You need to use debugger; code statement in chrome");
}, 0);
console.log("two");
console.log("three");

test.html

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>My Page</title>

    <script type="text/javascript" src="test.js" ></script>

</head>
<body>
<h1>Timeout test</h1>
</body>
</html>

See the attached screncast

Can you provide a sample project that shows up the problem?


Best regards,
Lena



Attachment(s):
screencast.mp4
0

Please sign in to leave a comment.