Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

I'm using Visual studio code editor 0.5 version. My debug configuration file:

{
     "name": "Launch app",
     "type": "node",
     "program": "src/server/app.ts",
     "stopOnEntry": false,
     "sourceMaps": true,
     "outDir": "src/server/"
}

I have compiled all files, but when I run in debug, I get this error: node js error

But if I set sourceMaps to false and program back to src/server/app.js it works and I get break point hit at my app.js. Is this is visual studio code bug?

Edit: Finally I found a mistake. I'm using gulp-typescript and gulp-sourcemaps plugins and gulp-sourcemaps generate different source maps compared to tsc compiler, this is why this error occured. I was able to fix it only by doing some hacks for gulp-sourcemaps plugin. But I still not sure if this is gulp-sourcemaps bug or visual studio code bug so I will try to register bug for vs code.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.