Skip to content

请问能否在vscode上单步调试xmake? #4580

Answered by waruqi
ruiyuanlu asked this question in Q&A
Discussion options

You must be logged in to vote

所以我觉得,是不是可以考虑一下增加类似上面的 vs_configuration=RelWIthDebInfo,以及 auto_flags=false,来控制 xmake 是否默认添加 flag,替代这里的注释代码的行为,同时设置 vs 的 configuration来和 cmake 对齐输出路径,这样能方便检查,从而避免这种隐式 bug。这样做可以给用户更大的自由度,已有的 cmake 代码库就完全不需要改动了。

这是特殊 api 设置不会考虑的。而且 cmake 也不只 vs 一个 generator,用户切到 ninja 就没法适用了。。

你想要最大自由度,就自己 os.exec 执行 cmake 命令,完全自主可控。。或者切到 ninja generator 去编译

Replies: 8 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ruiyuanlu
Comment options

@waruqi
Comment options

Comment options

You must be logged in to vote
1 reply
@waruqi
Comment options

Comment options

You must be logged in to vote
2 replies
@ruiyuanlu
Comment options

@waruqi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ruiyuanlu
Comment options

Answer selected by ruiyuanlu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants