Query: how to solve the sudo gdb issue on Mac?
- Dominant language
- TypeScript
- Stars
- 10.4k
- Forks
- 521
- PR merge metrics
- No merged PRs in 30d
Description
On `macOS 10.15.5`, I first use brew to install gdb.
Then I clone the project, and would like to have a try in the `example` folder.
I execute `make hello` and successfully compile the binary
```
$ ls | grep hello
hello.c
hello_c.a
hello_c.a.dSYM
```
Then I can successfully debug with gdb by `sudo gdb hello_c.a`

But cannot debug with only `gdb hello_c.a`

Now the pivotal issue comes: when I use `gdbgui --args /Users/bytedance/test/gdbgui-test/gdbgui/examples/c/hello_c.a`, I can see the codes in Chrome, but cannot debug.

I suspend it is related to the sudo. Could anyone gives some hints? I google a lot but not yet have method to deal with this issue. Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.