Is it possible to debug a scratch file?

Hy there,

I can't seem to get WebStorm to hit break-points within a scratch file.

I do the following:
- create a scratch file
     Tools > New Scratch File
- enter some simple js:

     var letsDebug = 1;
     console.log(letsDebug);

- Set a break-point on both lines and do a right-click on the scratch-file and choose "Debug scratch". What I see in the Console is:

     "C:\Program Files (x86)\JetBrains\WebStorm 9.0.3\bin\runnerw.exe" C:\nodejs\node.exe --debug-brk=59555 --nolazy c:\Users\xxx\AppData\Local\Temp\scratch18.js
     debugger listening on port 59555
     1

     Process finished with exit code 0

But those break-points never get hit. Am I missing something?

Thank you,
André

Using Webstorm 9.0.3

3 comments
Comment actions Permalink

Debugging scratch files is not supported. Please follow https://youtrack.jetbrains.com/issue/IDEA-129961 for updates


0
Comment actions Permalink

I can understand that this is not possible (or at least not easy) for Java.

In JavaScript it is possible, but I can't set breakpoints...

Why I can not set breakpoints?

0

Please sign in to leave a comment.