xmake-io / xmake-vscode

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

vscode extension cannot hold debug mode #199

Open ruiyuanlu opened 1 year ago

ruiyuanlu commented 1 year ago

Xmake Version

2.7.8+master.d6ee79eed

Operating System Version and Architecture

windows10

Describe Bug

vscode 扩展无法自动保持 debug 模式,总是在debug模式下点击 build 按钮时,从第二次开始自动切换到 release 模式导致断点失效,而且用 release 编译的时候,vscode扩展仍然显示的是 debug 模式,每次需要先手动切换为 release,再切换为 debug 再编译,才能在编译前增加 xmake f -m debug 命令

xmake 默认是 release,那 vscode的扩展和xmake应该至少有一个能记录一下当前的模式吧?目前好像都记录不了

Expected Behavior

debug模式下,不更改编译模式,多次编译都应该是 debug,而不是只有第一次是debug

Project Configuration

No response

Additional Information and Error Logs

No response

waruqi commented 1 year ago

没遇到你说的问题,这边正常。。你可以拉取插件源码调试下,也可以直接 pr 来改进。