How to debug Windows Native?

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.

Anyone please?

Which CocosCreator version do you use?
Native debug is broken in v1.6 because of updating spider monkey, @pandamicro will fixed it in later version.

I believe I used 1.5.2.
Is this going to be fixed/improved in 1.7?

I think debug on 1.5.2 is ok.
Did you try to write launch.json as this?

Hi, I dont understand how this launch.js can allow me to debug my windows native build.Would it be possible to have a detailed step by step tutorial on how to debug in native patforms? The documentation (http://docs.cocos.com/creator/manual/en/publish/debug-native.html) its very confusing confusing and its not working for me.

Just to mention one thing that is wrong with the documentation: asks to manually download a cocos_debug extension from http://7xougr.dl1.z0.glb.clouddn.com/vscode/cocos-debug.zip and manually install it. But it turns out that this is exactly what we do when we go to Creator>Developer>VS Code Workflow>Install extension. The version I downloaded to installed manually is quite old… Can we have a new/updated/step-by-step manual on how to debug native, please?