We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
target
2.7.8
Windows 11 version 22H2
launch.json 配置文件示例如下:
launch.json
{ "configurations": [ { "type": "xmake", "request": "launch", "name": "Debug XMake target", "target": "${fileBasenameNoExtension}", "cwd": "${workspaceFolder}", "stopAtEntry": true } ] }
由于在target中使用了变量${fileBasenameNoExtension},导致使用vscode自带的调试按钮或者F5开启调试时插件提示The target program not found!
${fileBasenameNoExtension}
The target program not found!
期望可以在launch.json中target属性使用vscode变量
No response
简单调试后发现,可以将插件中launchDebugger.ts文件里的resolveDebugConfiguration函数换成使用resolveDebugConfigurationWithSubstitutedVariables这个API,可以成功调试,但不确定是否会造成其它影响。
launchDebugger.ts
resolveDebugConfiguration
resolveDebugConfigurationWithSubstitutedVariables
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Xmake 版本
2.7.8
操作系统版本和架构
Windows 11 version 22H2
描述问题
launch.json
配置文件示例如下:由于在
![image](https://private-user-images.githubusercontent.com/60959462/241521327-56c9c437-ee88-4605-9970-a03b43fbb5b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMDI0MDEsIm5iZiI6MTcxOTEwMjEwMSwicGF0aCI6Ii82MDk1OTQ2Mi8yNDE1MjEzMjctNTZjOWM0MzctZWU4OC00NjA1LTk5NzAtYTAzYjQzZmJiNWIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAwMjE0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4OTc3M2IyMTI1MzE0OTRmZDNhYTA4YTBjOTVhN2VlNTAwNzg4MTA3YTQ1ODY4NWQ5MGM0YTdkODM0ZjZhNDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GgTCgcQ9extyyHFHQo4klpauW34zi-Hl5eAnGjxkUbc)
target
中使用了变量${fileBasenameNoExtension}
,导致使用vscode自带的调试按钮或者F5开启调试时插件提示The target program not found!
期待的结果
期望可以在launch.json中
target
属性使用vscode变量工程配置
No response
附加信息和错误日志
简单调试后发现,可以将插件中
launchDebugger.ts
文件里的resolveDebugConfiguration
函数换成使用resolveDebugConfigurationWithSubstitutedVariables
这个API,可以成功调试,但不确定是否会造成其它影响。The text was updated successfully, but these errors were encountered: