Tools: Debugging Native and Java Code with WDB
Page 13
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Starting Java from gdb: Modify wrap
The second method to invoke the debugger requires you to modify:
/opt/java1.3/bin/.java_wrapper
At the end of the file you have the following commands to start Java:
# Run.
if [ -x "$prog" ]
then
# invoke the VM $args contains arguments which begin with "-", $* contains …
exec $DEBUG_PROG "$prog" "${options[@]}" "$@"
else
echo >&2 "$progname was not found in ${prog}"
exit 1
fi