I have download the debugger for gp2x from this site:

http://archive.gp2x.de/cgi-bin/cfile...,0,0,0,14,1655

Put both, debugger and program, into same directory and connect to gp2x with telnet, switch to program directory and call:

./dbg program.gpe

That alls, nothing special. Only you have to remove "-s" option from linker, cause it strip all debug symbols.

Cheers
Thomas