Ignoring breakpoints

I'm trying to debug a simple node.js app but can't get the debugger to work. I the beginning i use fs to read a config file. Within its anonymous function there are console.log() calls. I have put the break points on them and i see in the console that they are executed, but the debugger does stop there. How come!?

I have the same problem further on in the code, but this is the easiest to explain.

// Read URL file
fs.readFile(__dirname + '/testUrls.json', function(error, data){
if (error){
console.log("Ops this doesn't exist...");
}
else{
console.log("Reading file");
fileContent = JSON.parse(data);
}
});

2 comments
Comment actions Permalink

Hi @Björn,
Yes same problem verions 7.0.3 Webstorm.

It breakpoints ok outside callback functions. Same?

fs or any library same problem.

0
Comment actions Permalink

Hello!
known issue - see http://youtrack.jetbrains.com/issue/WEB-8174. This is actually V8 problem (http://code.google.com/p/v8/issues/detail?id=2825). Partial solution (workaround) is implemented in WebStorm8

0

Please sign in to leave a comment.