This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes jdb puzzle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "jdb puzzle" Watch "jdb puzzle" New topic
Author

jdb puzzle

Kevin Jaffe
Greenhorn

Joined: Jun 07, 2001
Posts: 15
I need to step through some complicated code in the javax.swing and
javax.swing.tree packages using a debugger, but I have not been able
to find a debuggable version of the jdk-1.3.1 distribution.
Therefore, in a desperate move, I made a new rt.jar file including the
classes of interest recompiled with the -g flag. (I included print
statements in the sources prior to recompilation, to serve as
indicators that these were the class files that were actually being
loaded by the debugger.) I started the application under the jdb
debugger and set breakpoints in the recompiled jdk code, right at the
newly added print statements, but jdb ignored these breakpoints. It
did not complain or announce that it was stepping over these
breakpoints; it just silently stepped right over them. (The printing
by the inserted statements happened as expected.)
The question is why does jdb behave in this way?
Thanks,
KJ
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jdb puzzle
 
Similar Threads
IDE's, the command line, and debuggers
loop
Debugging
setting breakpoint
Learning to Debug !