Home > Archive > Java Help > December 2006 > can't get jGrasp debugger to step in to function
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
can't get jGrasp debugger to step in to function
|
|
| BillJosephson 2006-12-15, 4:14 am |
| Hi, I'm calling a method in a class, that is failing to print a line,
and I want to step into that function to debug it. However, the "step
in" (little arrow pointing down then right) only steps over the
function. The debugger stays in the calling function.
I'm doing something wrong but I don't know what.
Thanks for any help....
| |
| Larry Barowski 2006-12-15, 7:10 pm |
|
"BillJosephson" <billjosephson@hotmail.com> wrote in message
news:1166158342.092422.257410@j72g2000cwa.googlegroups.com...
> Hi, I'm calling a method in a class, that is failing to print a line,
> and I want to step into that function to debug it. However, the "step
> in" (little arrow pointing down then right) only steps over the
> function. The debugger stays in the calling function.
If you're trying to step into a Java library method, first
go to "Settings" / "Java Debug Settings" and change
"Exclude these classes for 'step in'" to "[none]".
Otherwise, can you set a breakpoint in the method (the
one you want to step into) and run to it? Can you step
into other methods? There is a Java bug that will
prevent "step-in" from working correctly for some
methods, and it could possibly result in a "step over":
http://bugs.sun.com/bugdatabase/vie...?bug_id=4725407
| |
| BillJosephson 2006-12-15, 10:07 pm |
|
Larry Barowski wrote:
> "BillJosephson" <billjosephson@hotmail.com> wrote in message
> news:1166158342.092422.257410@j72g2000cwa.googlegroups.com...
>
> If you're trying to step into a Java library method, first
> go to "Settings" / "Java Debug Settings" and change
> "Exclude these classes for 'step in'" to "[none]".
>
> Otherwise, can you set a breakpoint in the method (the
> one you want to step into) and run to it? Can you step
> into other methods? There is a Java bug that will
> prevent "step-in" from working correctly for some
> methods, and it could possibly result in a "step over":
> http://bugs.sun.com/bugdatabase/vie...?bug_id=4725407
Many thanks. No, it's a method I wrote. It didn't occur to me to try
another.
I'll check the site, thanks.
| |
| Larry Barowski 2006-12-16, 8:09 am |
|
"BillJosephson" <billjosephson@hotmail.com> wrote in message
news:1166236207.125888.123530@79g2000cws.googlegroups.com...
> Many thanks. No, it's a method I wrote. It didn't occur to me to try
> another.
>
> I'll check the site, thanks.
It's mainly technical details and probably not of much
interest. If you have run into that bug, adding a simple
dummy statement like int dummy = 0; as the first
statement of the method would eliminate the problem.
Not that you'd do that permanently, but if you were
doing a lot of debugging and stepping in it might make
things easier.
|
|
|
|
|