Comments (7)
回头我看下
from xmake-vscode.
macos更新后,debug小按钮失效了
点击debug按钮,虽然能运行,但是不能调试,相当于直接运行程序。不过不是插件问题,试了一下,是cppdbg这个调试类型调试不了程序了,最后换了一个类型(安装codelldb插件,也可以调试rust的玩意),就可以了。不过插件的debug小按钮固定使用一个debug配置,现在每个项目都要用vscode自带的调试了。
之前主要是为了方便用户省去配置步骤,所以内置写死类型了,回头研究下,不过可能要等上段时间了,最近空闲时间不多
如果急需的话,你可以直接拉取xmake-vscode源码,用vscode加载运行 帮忙改进下这块,然后提个pr上来。
from xmake-vscode.
好的,我看看。主要是没研究过vscode插件怎么开发。先close了。
from xmake-vscode.
很简单的,直接vscode打开插件工程目录,加载运行就可以了,什么环境都不用配置,只有最后发布才需要。。
可以看下这篇介绍:https://tboox.org/cn/2017/10/11/xmake-vscode/
from xmake-vscode.
from xmake-vscode.
这里稍微备注下,通过配置:xmake.debugConfigType 到 codelldb 启用macos 15.0以上系统的调试支持,另外先装下lldb和vscode的c/c++插件
由于custom类型配置会覆盖原有debug type (lldb),这里做了些修复,只需要xmake.customDebugConfig里面加上自定义配置,就可以局部覆盖一些调试器配置,并且保证lldb还是有效启用的,而custom type就去掉了
#27
#26
比如追加sourceMap配置,对lldb指定其他源码加载目录:
"xmake.debugDebugConfig": {
"type": "codelldb"
},
"xmake.customDebugConfig": {
"sourceMap": {
"../../src": "xxxx/xxxx/xxx/src"
}
}
from xmake-vscode.
我刚改进了下插件,只要用户装了codelldb插件,xmake-vscode在mac下就会自动检测优先使用它,不需要额外的配置,不过如果用到了sourceMap,还是需要自己配置下的。
from xmake-vscode.
Related Issues (20)
- 通过vscode的xmake插件debug运行程序时,未尊重xmake.lua 中 set_runargs 设置的命令行参数 HOT 2
- 在容器内使用(或者vscode以root权限运行时), xmake-vscode 会提示xmake not found! HOT 4
- 工程脚本域调用 print 会导致无法调试 HOT 4
- 当workspace里面有多个目录的时候,不能够自动检测目录,打开xmake文件也不能自动激活 HOT 2
- Make lsp backend configurable HOT 2
- 设置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
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.