Monday, October 2, 2017

Debugging CoffeeScript in VSCode goes to .js files

Leave a Comment

I am trying to debug a CoffeeScript file in vs code. It works and I can step through the compiled.js files. However, I can't step through the actual CoffeeScript files.

Here is my launch.json file:

{     "type": "node",     "request": "launch",     "name": "Launch Meeting",     "program": "${workspaceRoot}/lib/meeting/meeting-service.coffee",     "cwd": "${workspaceRoot}",     "env": {         "NODE_ENV": "local"     },     "sourceMaps": true } 

And in another window, I am running:

./node_modules/.bin/coffee -mc --watch lib/activity/note-activity-model.coffee \                                        lib/activity/note-activity-publisher.coffee \                                        lib/app-event-queue.coffee \                                        lib/meeting/meeting-api.coffee \                                        lib/meeting/meeting-service.coffee \                                        lib/meeting/meeting-socket-service.coffee \                                        lib/meeting/meeting-util.coffee 

When I set a breakpoint in the coffee file, the debugger halts on the compiled js file. I need it on the coffee file.

1 Answers

Answers 1

Did you try to use

"stopOnEntry": true, "smartStep": false 

as described in https://github.com/Microsoft/vscode/issues/5963 ?

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment