Comments (14)
I'd also like this feature, because I don't use the mouse much when writing code, and being able to click the keyboard button to start debugging my program would be nice.
@littlewater It is not possible to bind XMake: Debug
to F5
, but it is possible to use F6
instead.
Go into File > Preferences > Keyboard Shortcuts
, write xmake
into the search bar, find XMake: Debug
, right click it and click Change Keybinding
, then click F6
and Enter
. Right click it again and click Change When Expression
. Write editorLangId == 'cpp' && debugState != 'running'
into the field, and press Enter
. This will ensure that F6 will only trigger XMake: Build
if you are not already in a debugging session. It should look like this:
from xmake-vscode.
可以了,#99
from xmake-vscode.
我刚已经说了,xmake原本就会通过底下的按钮生成launch.json带起调试器,只是没对接任何快捷键而已。。
from xmake-vscode.
这个我知道能启动,纯键盘我也可以运行,只是觉得按CTRL+SHIFT+P,然后选xmake:debug稍微慢一点,F5太习惯了。
xmake生成的launch.json有没有可能产生到.vscode目录下,我看了一下现在还没有,我下午实验了下launch.json,看了点其他的type的类型,像node,还有extenionHost,也不知道怎么添加自定义的调用的,再研究下去感觉走的太远了,姑且就丢在这便当作一个request,也不是很着急,如果能完善最好吧。
from xmake-vscode.
之前我记得#33也有人提过,然后我看到你代码里面的一部分实现,就是内部lua产生动态的launcher,后面肯定都没问题的,纯粹只是使用习惯的事情了。
from xmake-vscode.
这个我知道能启动,纯键盘我也可以运行,只是觉得按CTRL+SHIFT+P,然后选xmake:debug稍微慢一点,F5太习惯了。
就首次需要切debug mode编译而已,即使f5 首次还是要切debug编译的。。
之后的调试运行,只需要点一些下面的调试按钮就起来了,也不需要 按CTRL+SHIFT+P ,我感觉比按f5还快,就鼠标点下就好了。。
即使要接入f5,那也就是注册响应下f5按键事件,内部调用下跟底下按钮相同的func触发调试就行了,为啥还要折腾lauch啥的呢,xmake-vscode里面原本就弄好的。
from xmake-vscode.
感觉还是集成到.vscode/launch.json和tasks.json好一点?
我看隔壁也开始做这个事情了
microsoft/vscode-cmake-tools#1268
from xmake-vscode.
倒也不是说隔壁就很牛逼,只是希望能更好的集成到vscode上
from xmake-vscode.
感觉还是集成到.vscode/launch.json和tasks.json好一点?
我看隔壁也开始做这个事情了
microsoft/vscode-cmake-tools#1268
主要是我现在暂时没时间研究这块,只能先自己绑定下 凑活着用吧,或者可以帮忙提个pr过来。
from xmake-vscode.
噢噢,确实也是😂😂
from xmake-vscode.
希望能够增加launch.json和tasks.json,我这边在远程连接的时候总是出现xmake的插件图标无法显示的问题,就很难受。 不知道根使用的终端有没有关系。我用的是zsh,在~/.zshrc
的最后一行添加了source ~/.xmake/profile
。
from xmake-vscode.
launch.json和tasks.json
图标问题,跟增加 launch.json和tasks.json 有什么关系,跟这个issue 也没啥关系,请新开 issue 详细描述问题和复现步骤。
from xmake-vscode.
launch.json和tasks.json
图标问题,跟增加 launch.json和tasks.json 有什么关系,跟这个issue 也没啥关系,请新开 issue 详细描述问题和复现步骤。
因为想着加了之后就可以按F5进行debug了,有没有图标也不影响了。同时也方便传参数。
from xmake-vscode.
launch.json和tasks.json
图标问题,跟增加 launch.json和tasks.json 有什么关系,跟这个issue 也没啥关系,请新开 issue 详细描述问题和复现步骤。
因为想着加了之后就可以按F5进行debug了,有没有图标也不影响了。同时也方便传参数。
上面有人提供方案,自己绑到 f6上调,而且按下面的调试按钮 也没麻烦多少
现在也可以传参,暂时没时间搞
from xmake-vscode.
Related Issues (20)
- 设置xmake build目录后调整不回去默认的 HOT 2
- vscode 调试配置launch.json无法添加visualizerFile属性 HOT 6
- C++设置xmake build目录重启虚拟机后编译可能检测不到代码变化 HOT 8
- cuda 项目生成的compile_commands貌似无法正常提示 HOT 6
- `project directory (/path/dir) is not empty!` error when using VSCode and auto generated `.vscode` directory. HOT 2
- 记住上次关闭时选中的target HOT 1
- 将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 HOT 3
- 无法正常生成compile_commands,以及“Error:there is no registered task type 'cppbuild'” HOT 1
- option() to be visible in xmake vscode extension HOT 1
- "stopAtEntry" option from launch.json is not respected HOT 3
- VSCode 插件不生效 HOT 3
- Target里on_load打印消息,会导致run或debug无法运行 HOT 1
- 当使用set_targetdir设置输出目录后,在vscode中使用lanunch.json开启程序会报target program not found HOT 2
- toolchain drop list improvement HOT 1
- xmake-vacode buildrun Bugs HOT 11
- vscode插件 debug 启动不了 HOT 1
- 允许设置右下角快捷按钮的工作目录 HOT 1
- 每次启动vscode激活扩展时都需要点击build按钮重新构建项目,才可以开始debug HOT 6
- Debug doesn't work from launch.json, but works from button on the panel HOT 1
- 插件中增加 buildDebug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake-vscode.