xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
223 stars 55 forks source link

"stopAtEntry" option from launch.json is not respected #258

Open ifarbod opened 4 months ago

ifarbod commented 4 months ago

Xmake Version

2.8.7

Operating System Version and Architecture

Windows 11 23H2

Describe Bug

When you start debugging, it will always stop at the target's entry point.

Expected Behavior

it should respect the option in launch.json:

    "stopAtEntry": false

Actual behavior, it doesn't.

Project Configuration

N/A

Additional Information and Error Logs

This is always true:

https://github.com/xmake-io/xmake-vscode/blob/cc62b952b67188019593780d75df694ac3efadd8/src/xmake.ts#L1111

Is this intended?

waruqi commented 4 months ago

this plugin do not use user launch.json, it will generate launch.json automatically. please set xmake.customDebugConfig to override it.

ifarbod commented 4 months ago

For anyone running into this issue, put this in your project specific settings.json

.vscode/settings.json

    "xmake.customDebugConfig": {
        "stopAtEntry": false
    },
A2va commented 4 months ago

If you start your debugging session by pressing F5, it will not use the launch.json, to use it you must use the Run -> Start Debugging menu.