Giter VIP home page Giter VIP logo

Comments (7)

waruqi avatar waruqi commented on June 18, 2024

回头我看下

from xmake-vscode.

waruqi avatar waruqi commented on June 18, 2024

macos更新后,debug小按钮失效了

点击debug按钮,虽然能运行,但是不能调试,相当于直接运行程序。不过不是插件问题,试了一下,是cppdbg这个调试类型调试不了程序了,最后换了一个类型(安装codelldb插件,也可以调试rust的玩意),就可以了。不过插件的debug小按钮固定使用一个debug配置,现在每个项目都要用vscode自带的调试了。

之前主要是为了方便用户省去配置步骤,所以内置写死类型了,回头研究下,不过可能要等上段时间了,最近空闲时间不多

如果急需的话,你可以直接拉取xmake-vscode源码,用vscode加载运行 帮忙改进下这块,然后提个pr上来。

from xmake-vscode.

eddylin83 avatar eddylin83 commented on June 18, 2024

好的,我看看。主要是没研究过vscode插件怎么开发。先close了。

from xmake-vscode.

waruqi avatar waruqi commented on June 18, 2024

很简单的,直接vscode打开插件工程目录,加载运行就可以了,什么环境都不用配置,只有最后发布才需要。。

可以看下这篇介绍:https://tboox.org/cn/2017/10/11/xmake-vscode/

from xmake-vscode.

waruqi avatar waruqi commented on June 18, 2024

#20

from xmake-vscode.

waruqi avatar waruqi commented on June 18, 2024

这里稍微备注下,通过配置: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.

waruqi avatar waruqi commented on June 18, 2024

我刚改进了下插件,只要用户装了codelldb插件,xmake-vscode在mac下就会自动检测优先使用它,不需要额外的配置,不过如果用到了sourceMap,还是需要自己配置下的。

from xmake-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.