I have a executable jar with source compiled in and I want to debug it using jdb (no other debugger available in this environment unfortunately).
I am able to debug it with
jdb -classpath "${JAR_FILE}:${CLASS_PATH}" ${MAIN_CLASS} ${ARGS}
How can I get jdb to use the source that is built into the jar file?
Notes: Java 6, AIX, ksh
actually I managed to debug into a jar file without source code today, the steps are as follows:
unzip jar file
jdb -sourcepath [unzipped source folder] -classpath [the path for your main class]
after jdb initializing, excute:
stop at <package>.<yourclass>:<linenunmber>
run <your main class, for example org.springframework.boot.loader.JarLauncher>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With