summaryrefslogtreecommitdiffstats
path: root/krfb/kinetd/README.debugging
blob: 359496b83cf6ff67ce26979e87552175ee99d101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Recommended practice to debug a kinetd program
==============================================

Instead of executing your program directly, start a wrapper script that 
looks like this:

#!/bin/sh
exec xterm -e gdb --args /opt/kde/bin/krfb $1 $2

Note that you cannot use konsole because it closes the file descriptor. You need 
a very recent gdb version for the "--args" option (>= 5.2, only available as
CVS snapshot at this time).