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

忘了当前配置是deubg还是release,怎么查看? #836

Closed
playgithub opened this issue Jun 11, 2020 · 6 comments
Closed

忘了当前配置是deubg还是release,怎么查看? #836

playgithub opened this issue Jun 11, 2020 · 6 comments

Comments

@playgithub
Copy link

playgithub commented Jun 11, 2020

忘了上次是用xmake f --mode=debug还是xmake f --mode=debug配置的

PS:如果多加一些查询就方便了

@waruqi
Copy link
Member

waruqi commented Jun 12, 2020

xmake f -v 就可以看,另外每次编译的时候 不是进度信息就带mode显示了么 还看不到哈。。。

@playgithub
Copy link
Author

playgithub commented Jun 12, 2020

xmake f -v 就可以看

xmake f -v可以的

另外每次编译的时候 不是进度信息就带mode显示了么 还看不到哈。。。

编译前看啊


PS:如果加点这样的选项就好了:

  • xmake f mode or xmake f --mode
  • xmake f plat or xmake f --plat
  • xmake f arch or xmake f --arch
  • xmake f target_path or xmake f --target_path

我得先看看代码,看能不能加吧

@waruqi
Copy link
Member

waruqi commented Jun 12, 2020

编译前看啊

不是有 xmake f -v 了么,新版本也可以通过 xmake show 看。

xmake f --mode
xmake f plat or xmake f --plat
xmake f arch or xmake f --arch

你就不要瞎设计了,干扰正常的配置

@playgithub
Copy link
Author

不是有 xmake f -v 了么,新版本也可以通过 xmake show 看。

xmake show好,速度比xmake f -v快多了

xmake f --mode
xmake f plat or xmake f --plat
xmake f arch or xmake f --arch

你就不要瞎设计了,干扰正常的配置

哈哈哈,我的接口应该不够好,但是功能真有这个需求,xmake f target_path or xmake f --target_path可以解决我的主要问题,有了这个vscode就能使用普通的lanuch.json了,如果targetPath写死,可以使用快捷键,而且不会卡住。知道你忙,我有空学习一下代码先。

@waruqi
Copy link
Member

waruqi commented Jun 12, 2020

不是有 xmake f -v 了么,新版本也可以通过 xmake show 看。

xmake show好,速度比xmake f -v快多了

xmake f --mode
xmake f plat or xmake f --plat
xmake f arch or xmake f --arch

你就不要瞎设计了,干扰正常的配置

哈哈哈,我的接口应该不够好,但是功能真有这个需求,xmake f target_path or xmake f --target_path可以解决我的主要问题,有了这个vscode就能使用普通的lanuch.json了,如果targetPath写死,可以使用快捷键,而且不会卡住。知道你忙,我有空学习一下代码先。

之前就说了,xmake-vscode内部就是透传的lanuch.json,跟你外面设置lanuch.json没有本质区别,即使不改插件,也有对应的配置选项,可以完全改写内置lanuch.json里面的所有设置

而且 xmake-io/xmake-vscode#36 都有其他用户说了,卡住可能跟externalConsole的设置有关,你自己配置改写下内部的 externalConsole 设置么,花个几分钟尝试下么。。

即使不是externalConsole的问题,你就把你外面的lanuch.json的配置,挨个设置到 xmake.customDebugConfig 里面去,对比么,看看到底是哪个设置 或导致插件卡死么。。对比个几分钟 老早就把原因找到了。。

"xmake.customDebugConfig": {
    externalConsole: false
}

xmake-io/xmake-vscode#33
xmake-io/xmake-vscode#39

这两个里面,我都说了好几遍了,尝试下改externalConsole,你有这点时间折腾,稍微研究下xmake-vscode的配置 说不定老早搞定了。

哪怕是直接研究xmake-vscode的源码也比这个快。。

而且获取指定target路径的方式,xmake-vscode源码里面也有,直接参考下么,也就一行命令的事

https://github.com/xmake-io/xmake-vscode/blob/289d7b81ab8409e011255425cf5f3fb727be5016/src/xmake.ts#L704-L710

xmake l assets/targetpath.lua targetname

https://github.com/xmake-io/xmake-vscode/blob/master/assets/targetpath.lua

@playgithub
Copy link
Author

好的,谢谢,研究一下

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

No branches or pull requests

2 participants