Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Step Over not pausing
Step Over not pausing [message #258367] Wed, 28 January 2009 13:07 Go to next message
Eclipse UserFriend
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 #258370 is a reply to message #258367] Wed, 28 January 2009 13:51 Go to previous messageGo to next message
Eclipse UserFriend
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?

Regards,

Peter

--

Peter Palaga

http://www.drgarbage.com/
Re: Step Over not pausing [message #258375 is a reply to message #258370] Wed, 28 January 2009 18:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgold.watson.ibm.com

Peter Palaga wrote:
> 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!
Re: Step Over not pausing [message #258381 is a reply to message #258375] Wed, 28 January 2009 19:40 Go to previous message
Eclipse UserFriend
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/
Previous Topic:Need help in running Junit test cases
Next Topic:Extremely slow APT
Goto Forum:
  


Current Time: Wed May 07 16:55:35 EDT 2025

Powered by FUDForum. Page generated in 0.06258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top