Debugging support in gamin: Both the client and server side, if compiled with debug support accept an environment variable GAM_DEBUG which is set will make them report debugging informations to stdout. Usually for debugging you also want to use a dedicated server process so setting the GAM_CLIENT_ID environment allows to ensure this. Usually one also want to keep control over the server lifetime and not have it exit automatically after 30 seconds without connection, there is a command line flag --notimeout to gam_server for this. a typical example of a debugging session using 2 shells would be shell1: export GAM_DEBUG= shell1: gam_server --notimeout test running the server in debug mode using the ID "test" shell2: export GAM_DEBUG= shell2: export GAM_CLIENT_ID=test shell2: gamin_client this will run a verbose session. It is perfectly possible to also run the client under a debugger, for the server it works too except the dnotify kernel interface uses a signal SIG33 which is trapped by gdb. To avoid this use the handle gdb instruction: (gdb) handle SIG33 nostop Signal Stop Print Pass to program Description SIG33 No Yes Yes Real-time event 33 (gdb) even better add it to your $HOME/.gdbinit Daniel Veillard $id$
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
AUTHORS | File | 153 B | 0644 |
|
COPYING | File | 24.89 KB | 0644 |
|
ChangeLog | File | 81.3 KB | 0644 |
|
Copyright | File | 55 B | 0644 |
|
FAQ.html | File | 3.87 KB | 0644 |
|
NEWS | File | 9.48 KB | 0644 |
|
README | File | 1.48 KB | 0644 |
|
TODO | File | 2.59 KB | 0644 |
|
callbacks.gif | File | 4.41 KB | 0644 |
|
client_server.gif | File | 4.52 KB | 0644 |
|
config.html | File | 6.72 KB | 0644 |
|
contacts.html | File | 5.23 KB | 0644 |
|
debug.html | File | 7.2 KB | 0644 |
|
debugging.txt | File | 1.26 KB | 0644 |
|
devel.html | File | 4.85 KB | 0644 |
|
differences.html | File | 6.61 KB | 0644 |
|
downloads.html | File | 4.1 KB | 0644 |
|
gamin.html | File | 31.63 KB | 0644 |
|
index.html | File | 7.91 KB | 0644 |
|
internals.html | File | 5.29 KB | 0644 |
|
news.html | File | 14.12 KB | 0644 |
|
overview.html | File | 5.2 KB | 0644 |
|
python.html | File | 6.14 KB | 0644 |
|
security.html | File | 6.61 KB | 0644 |
|
server_structs.gif | File | 8.67 KB | 0644 |
|
socket.txt | File | 1.59 KB | 0644 |
|
using.html | File | 4 KB | 0644 |
|