Hi, I need to debug a Windows Native build and the only iformation I found is this one: http://docs.cocos.com/creator/manual/en/publish/debug-native.html
Debug Built Native Project
Once you build the project for iOS, Android, Windows or Mac, you can debug these native projects with VS Code. Open the project in VS Code, usually the path is:
myProject/build/myProject/jsb-default or myProject/build/myProject/jsb-binary, depending on your build template.
Once you run the project on the target device or desktop simulator, the workflow is pretty much the same as above, please add your breakpoints in jsb-default/src/project.dev.js. Below are tips for debugging on mobile platform.
So, I tried to do it as stated and put my breakpoints on project.dev.js but it doesnt work. Im not sure if my launch.json is ok:
{
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}\\build\\jsb-default\\simulator\\win32\\ProtoHTML5.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true
}
]
}
Im an OSX user trying to understand how windows builds work and dont know how to debug the native version in windows. Any help/tips would be greatly appreciated. @slackmoehrle I believe we need more documentation regarding native debug.