Debug Cocos Creator in Visual Studio Code


#1

Hello,
I can’t debug Cocos Creator project using Visual Studio Code:
followed istructions there: Use VSCode to debug cocos2d-x JSB programs
I can compile using “cocos” command and run the project in Visual Studio but can’ t attach to debug in Visual Studio Code;
I can build project in cocos creator using target Window platform, but then if I try to Play it I get these errors:

at exports._errnoException (util.js:1026:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
at process. (C:\CocosCreator\resources\app.asar\editor\core\editor-init.js:1:983)
at emitOne (events.js:101:20)
at process.emit (events.js:188:7)
at process._fatalException (bootstrap_node.js:304:26).

Could someone please give me a sort of tutorial to use Visual Studio Code to debug Cocos Creator project?

Thank you.


#2

What’s your error using VSC to debug the codes?