-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
增加运行参数配置set_runargs #2527
Comments
支持了 |
我在windows上使用vs code + xmake插件 ,远程到wsl2的ubuntu(xmake 2.73),发现set_runargs有两个问题: |
set_runargs 主要是给 xmake run 用的,去重暂时改进不了,插件里面可以用
|
哇,回复好快,谢谢。xmake对c等编译语言的大统一真是超级赞,最近入手想debug一个程序折腾了好几天没把参数传进去,O(∩_∩)O。试了一下runningTargetsArguments用下面的写法可以正确传参数,但是debuggingTargetsArguments同样写法还是穿不进参数: |
搞定,debuggingTargetsArguments的参数必须填到default里。 |
请问这个配置要写到哪个文件呀? |
{
"xmake.runningTargetsArguments": {
"type": "object",
"loader_demo": [
"/usr/bin/ls"
]
},
"xmake.debuggingTargetsArguments": {
"type": "object",
"loader_demo": [
"/usr/bin/ls"
]
}
} 但是仍然没有把参数传递进去。 if(argc < 2){
printf("usage: %s <binary>\n", argv[0]);
return 1;
} 在这里运行退出了。 {
"xmake.runningTargetsArguments": {
"type": "object",
"default": {
"loader_demo": [
"/usr/bin/ls"
]
}
},
"xmake.debuggingTargetsArguments": {
"type": "object",
"default": {
"loader_demo": [
"/usr/bin/ls"
]
}
}
} |
你在什么场景下需要该功能?
不同的target需要不同的参数,每次都需要手动输入太麻烦,写在on_run里面也不够方便
描述可能的解决方案
希望能够增加set_runargs接口,里面配置运行参数,同时生成的工程文件也应该支持调试参数
描述你认为的候选方案
No response
其他信息
No response
The text was updated successfully, but these errors were encountered: