Step Over not pausing [message #258367] |
Wed, 28 January 2009 13:07  |
Eclipse User |
|
|
|
Originally posted by: kgold.watson.ibm.com
Has anyone ever seen this?
When I click 'step over', Eclipse doesn't pause at the next line. It
runs to the next breakpoint. Mouse and Fn key behave the same.
I can work around this by setting a breakpoint on every line. What
could I be doing wrong? Is there some configuration setting I'm missing?
This is a Java application on Linux, Eclipse 3.4.1.
|
|
|
|
|
Re: Step Over not pausing [message #258381 is a reply to message #258375] |
Wed, 28 January 2009 19:40  |
Eclipse User |
|
|
|
Originally posted by: newsgroups.eclipse.org-peter.palaga.drgarbage.com
>> Ken Goldman wrote:
>>> Has anyone ever seen this?
>>>
>>> When I click 'step over', Eclipse doesn't pause at the next line.
>>> It runs to the next breakpoint. Mouse and Fn key behave the same.
>>>
>>> I can work around this by setting a breakpoint on every line. What
>>> could I be doing wrong? Is there some configuration setting I'm
>>> missing?
>>>
>>> This is a Java application on Linux, Eclipse 3.4.1.
>>
>> Hi Ken,
>>
>> What kind of method is it, where you are doing 'step over'? Does it
>> come from a JAR archive, from class folder or does it belong to some
>> source folder in your workspace? Are you sure, that the method has
>> Line Number Table compiled in? Are you debugging remote or local?
>
> Thanks for responding.
>
> The method comes from a jar file.
>
> I don't know what a 'line number table' is or whether it's compiled in.
> The jar file is a library. I do not have source. But I thought 'step
> over' would not care what the method does.
>
> I'm debugging locally.
>
> Another input:
>
> It's one method that's the problem, and only if it's the first method in
> main. I swapped a few lines of source and the problem disappeared!
Line Number Table is a mapping from Java source code lines to bytecode
offsets. If you set a breakpoint in a method without this information,
the debugger does not know where to suspend the execution of bytecode.
JDT usually warns, when a user sets a breakpoint in such a method. But
the warnings may be turned off.
To check the setting for your own project in your workspace, go to
Project > Properties > Java Compiler
The checkbox called 'Add line number attributes to generated class
files' should be on.
Anyway, you say, your problem disapeared...
Regards,
Peter
--
Peter Palaga
http://www.drgarbage.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03151 seconds