Comments (5)
@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.
Hi @asa, you can specify the GDB binary in Settings > Build, Execution, Deployment > Toolchains.
from intellij.
I'll close this -- please reopen if that didn't fix it.
from intellij.
from intellij.
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)
- Sync unmarks existing Source Root directories and Mark the root workspace directory as Source Root
- CI check failure on Google branch HOT 2
- Remote Goland development is broken in the latest release HOT 4
- Cannot compile basic java project due to IJWB's aspects HOT 2
- Goland 2024.1 Editor Problems Analysis Stuck HOT 2
- `-filtered-gen.jar` and `-filtered-gen-src.jar` generated for packages without any `.java` files HOT 10
- CLion C++ '-oso_prefix,.' "path trimming" flag injected by the debug launcher fails linking (Linux/clang-17/mold) HOT 5
- Can't use breakpoint in main of a `cc_binary` when a `cpp_grpc_library` is linked to executable: "The breakpoint will not currently be hit. No executable code is associated with this line." HOT 8
- Breakpoints do not get triggered in Golang projects running C extensions via cgo
- CI Checks failure on Master branch HOT 2
- CLion does not find the right compiler when using a custom toolchain
- Importing an existing repository shows no relevant files HOT 3
- IntelliJ Reformat Code action ignores .buildifier.json
- Unable to build ASWB locally on mac HOT 2
- [go] No tests were found when running tests from a test suite HOT 3
- Remove hardcoded proto rule name to enable other Go code generators
- Bazel build error while syncing Go Lang Project HOT 1
- FastBuild Run cannot find Java Binary Path
- Support for custom event loggers
- Golang: some files in Go external libraries can not be selected on sidebar
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 intellij.