Giter Site home page Giter Site logo

Comments (5)

david-german-tri avatar david-german-tri commented on May 29, 2024 2

@asa, you may be interested in bazelbuild/bazel#2537. With the workarounds I've described on that thread, I've been able to generate dSYM files in bazel-bin. Separately, I was able to specify "Bundled GDB 7.11.1" in the CLion 2016.2.2 settings. I could then debug Bazel-built binaries using GDB, in CLion, on OS X.

One additional caveat: if your breakpoints don't take effect, check the console. GDB may be complaining that it can't find your source files, which can be worked around by adding set directories /path/to/my/workspace/root to your .gdbinit. This is not a CLion-specific problem, although CLion triggers it by passing absolute paths to GDB. Those paths appear invalid to GDB on OS X, for reasons I haven't fully worked out. It probably has something to do with the paths that the Bazel build embeds in DWARF symbols.

from intellij.

brendandouglas avatar brendandouglas commented on May 29, 2024

Hi @asa, you can specify the GDB binary in Settings > Build, Execution, Deployment > Toolchains.

from intellij.

brendandouglas avatar brendandouglas commented on May 29, 2024

I'll close this -- please reopen if that didn't fix it.

from intellij.

asa avatar asa commented on May 29, 2024

from intellij.

brendandouglas avatar brendandouglas commented on May 29, 2024

We currently only support linux. We have support for OSX and Windows planned at some stage, but it's not a current priority. Some things may work on OSX (and do indeed seem to, based on some of the comments here), but it's completely untested.

As a separate issue, CLwB currently only supports gdb (see BlazeCidrLauncher for the relevant code). Still, if you have gdb installed on your system, and specify the binary path in the settings, I'd expect this to work.

from intellij.

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.