[ nice-Bugs-1096738 ] jdb off-by-one-line problem

"SourceForge.net" <[email protected]> Thu, 24 Feb 2005 06:55:25 -0800
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1096738, was opened at 2005-01-05 22:16
Message generated for change (Settings changed) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1096738&group_id=12788

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: mike.beckerle (mbeckerle)
>Assigned to: Daniel Bonniot (bonniot)
Summary: jdb off-by-one-line problem

Initial Comment:
I'm using jdb to debug nice. (version 0.9.10)

When I do, I set a breakpoint via 

> stop at fnName

then when I 

> run

It stops at a breakpoint

> list

lists the programs, but the => pointer points 1 line 
above where the program is actually running. 

This makes stepping through code tedious at best.



----------------------------------------------------------------------

>Comment By: Daniel Bonniot (bonniot)
Date: 2005-02-24 15:55

Message:
Logged In: YES 
user_id=88952

All the cases that I know of are now fixed in the
development version.

----------------------------------------------------------------------

Comment By: Daniel Bonniot (bonniot)
Date: 2005-02-21 13:53

Message:
Logged In: YES 
user_id=88952

I could reproduce this situation with a local declaration at
the begining of a block:

void main(String[] args)
{
  let str = "Hello world";
}

The let is specified in the bytecode as if it was on the
line of "{". I'll look into this.

----------------------------------------------------------------------

Comment By: mike.beckerle (mbeckerle)
Date: 2005-02-19 19:22

Message:
Logged In: YES 
user_id=1182016

Sorry, I'm not actively using Nice now. Go ahead and close
this out if you can't reproduce.

----------------------------------------------------------------------

Comment By: Daniel Bonniot (bonniot)
Date: 2005-02-19 16:51

Message:
Logged In: YES 
user_id=88952

I just did some experiments with jdb, and line numbers were
quite right, not off-by-one. It can very well be that some
statements don't get the correct line number. Could you give
us an example of when this happens? Ideally this would be a
tiny self-contained program that we can test. The text of
any method where you have problems should do as well, since
I suspect this has to do with the mere structure of the
code, rather than a precise situation.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1096738&group_id=12788


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click