-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document process for running cyrus components through a debugger like gdb #1330
Comments
From: Jeroen van Meeuwen (Kolab Systems) As per the title |
There's a "[gdb]" section of cassandane.ini which allows firing up service daemons in a debugger (technical note: "service daemons" are any programs which are based around master/service.c, and includes imapd, lmtpd, and a few others, but notably does not include the command line tools). The cassandane.ini.example in the cassandane repo contains examples and instructions. When I'm trying to debug something in a service daemon I find it most useful to throw together a Cassandane test that tries to reproduce it, enable one of the [gdb] options as appropriate and go from there. For programs that aren't service daemons, you have two options:
|
If you need to pass command line arguments to a tool you're debugging, you do this once you're in gdb with something like |
Step 1: gdb Step 2: Step 3: all bugs are fixed. Issue #1330
Step 1: gdb Step 2: Step 3: all bugs are fixed. Issue #1330
Fixed! |
From: Jeroen van Meeuwen (Kolab Systems)
Bugzilla-Id: 3413
Version: 2.5.x (next)
Owner: Jeroen van Meeuwen (Kolab Systems)
The text was updated successfully, but these errors were encountered: