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

在launch.json的配置中target属性使用Vscode变量 #200

Open
hotsnow-sean opened this issue May 28, 2023 · 0 comments
Open

在launch.json的配置中target属性使用Vscode变量 #200

hotsnow-sean opened this issue May 28, 2023 · 0 comments
Labels

Comments

@hotsnow-sean
Copy link

Xmake 版本

2.7.8

操作系统版本和架构

Windows 11 version 22H2

描述问题

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!
image

期待的结果

期望可以在launch.json中target属性使用vscode变量

工程配置

No response

附加信息和错误日志

简单调试后发现,可以将插件中launchDebugger.ts文件里的resolveDebugConfiguration函数换成使用resolveDebugConfigurationWithSubstitutedVariables这个API,可以成功调试,但不确定是否会造成其它影响。

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

1 participant