Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

每次启动vscode激活扩展时都需要点击build按钮重新构建项目,才可以开始debug #268

Open
Arteiimis opened this issue Jun 5, 2024 · 6 comments
Labels

Comments

@Arteiimis
Copy link

Xmake 版本

2.9.2

操作系统版本和架构

win10

描述问题

每次启动vscode激活扩展时都需要点击build按钮重新构建项目,才可以开始debug,并且即使在命令台xmake f -m dubug, xmake构建完毕debug之后,依旧需要按build按钮构建,但这一次构建其实什么都没做,也许添加部分构建信息的持久化可以解决?

阅读源码ing...

期待的结果

不论何时打开项目,在命令台构建完毕debug模式之后,vscode窗口中打好断点,按下f5直接开始debug

工程配置

工程配置无关,随时可复现

附加信息和错误日志

无错误信息

@Arteiimis Arteiimis added the bug label Jun 5, 2024
@yh-sb
Copy link

yh-sb commented Jul 24, 2024

Also faced with this. Upvote.

image

@waruqi
Copy link
Member

waruqi commented Jul 26, 2024

set xmake.runMode as buildRun

"xmake.runMode": {

@Arteiimis
Copy link
Author

set xmake.runMode as buildRun

"xmake.runMode": {

这个只能让运行可以自动构建, 调试的话还是会提示需要构建

@waruqi
Copy link
Member

waruqi commented Jul 26, 2024

set xmake.runMode as buildRun

"xmake.runMode": {

这个只能让运行可以自动构建, 调试的话还是会提示需要构建

不会,你更新下插件

@Arteiimis
Copy link
Author

set xmake.runMode as buildRun

"xmake.runMode": {

这个只能让运行可以自动构建, 调试的话还是会提示需要构建

不会,你更新下插件

现在可以debugrun了,但是debug会在构建完成之前就加载程序到断点, 然后造成一些诡异的问题:

20240727_021242.mp4

@waruqi
Copy link
Member

waruqi commented Jul 28, 2024

这个目前没啥办法,两个 task 暂时没法串联,你可以提 pr 改进下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants