In LLVM project, debugserver.cpp has many logging levels. How to change it.
Asked
Active
Viewed 74 times
1 Answers
1
Since you are usually using lldb to launch debugserver, it's most convenient to get it to turn on the logging. There's an lldeb setting to send "extra startup commands" to debugserver that you can use to turn this on. Something like:
settings set target.process.extra-startup-command QSetLogging:bitmask=LOG_PROCESS|LOG_EXCEPTIONS;
You can "|" together any of the log bits defined in debugserver. That has to be set in lldb before you connect to debugserver (generally by doing run
or gdb-remote
.)

Jim Ingham
- 25,260
- 2
- 55
- 63