xmake-io / xmake-vscode

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

Add launch debug command #155

Closed A2va closed 1 year ago

A2va commented 1 year ago

I noticed sometimes with codelldb and stopAtEntry set to true, there is an exception at the start. Nothing that stop the debugger to continue but it's weird because sometimes it happens sometimes not. Should I disable stopAtEntry for codelldb?

waruqi commented 1 year ago

I tried this patch and select xmake to launch debugger, but it does not work.

image image
A2va commented 1 year ago

I think I know, why, when a launch.json is not found and the Run and Debug button is pressed, vscode tried to call provideDebugConfigurations to solve it dynamically but I didn't implement it because I wanted to do it later. What you need to do in this case is to press create a launch.json file and then select xmake.

Do I have to implement it in this PR?

waruqi commented 1 year ago

I think I know, why, when a launch.json is not found and the Run and Debug button is pressed, vscode tried to call provideDebugConfigurations to solve it dynamically but I didn't implement it because I wanted to do it later. What you need to do in this case is to press create a launch.json file and then select xmake.

I created it, it works now.

Do I have to implement it in this PR?

You can implement it later in new pr, or you can provide a user prompt to guide the user to create it manually.

waruqi commented 1 year ago

Thanks!

waruqi commented 1 year ago

btw, please push pr to dev branch next.

A2va commented 1 year ago

btw, please push pr to dev branch next.

Sorry, I should have known better