This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27454 - Debugger sometimes does not show local variables
Summary: Debugger sometimes does not show local variables
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 2 votes (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-19 22:47 UTC by oneway
Modified: 2010-04-29 09:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description oneway 2002-09-19 22:47:25 UTC
Remote debugging with Weblogic 6.1 (WLS)
JDK 1.3.1_01

Debugger sometimes does not show local variables, e.g. 
when the following code is running in WLS (EJB), 
variable "e" is not shown in the list of local variable in 
NB.

[...]
public void test() {
  try {
     ....
  } catch (Exception e) {
     // when execution gets the statement below, NB does
     // not show variable e in the list of local
     // variables
     throw new SomeNewException("Failed miserably", e);
  }
}
Comment 1 Jan Jancura 2003-02-14 16:46:02 UTC
fixed in the main trunk
Comment 2 oneway 2003-04-17 22:51:50 UTC
NB 3.4.1
Another case where debugger does not show local vars:
...
public void test() {
  // 1. when debugging, press F7 (step into) to 
  // see what parts of String's code are
  // executed
  // 2. when NB returns from String's code to 
  // test() local vars a,b,c will not be set.
  String a = "MyTest";
  String b = new String("MyTest");
  String c = a.substring(2);
  ...
}
Comment 3 oneway 2003-04-30 11:25:27 UTC
It appears that the original issue (now just local debugging, no app
server etc) has not been resolved, i.e.:

[...]
public void test() {
  try {
     ....
  } catch (Exception e) {
     // when execution gets the statement below, NB does
     // not show variable e in the list of local
     // variables
     throw new SomeNewException("Failed miserably", e);
  }
}
Comment 4 Jan Jancura 2003-05-06 14:58:40 UTC
What I am able to reproduce:
Testcase:
  String a = "MyTest";
  String b = new String("MyTest");
  String c = a.substring(2);

1) Run to cursor on first line
2) F7, F7, Step Out, F7
-> value of b variable is "" !!!
the same is tru for watch.
sout returns good value.
Comment 5 Jan Jancura 2003-05-06 15:22:53 UTC
Second problem:

          throw new IOException ();
      } catch (Exception e) {
         System.out.println(e); // e has no value here
         System.out.println(e); // e is OK.
      }

Looks like problem of compiler / JPDA debugger implementation, but I
would like to look at it more deeply
Comment 6 Maros Sandor 2003-12-04 16:23:24 UTC
This issue originates in JPDA and reproduces nicely in other 
debuggers. BugParade #4750669.
http://developer.java.sun.com/developer/bugParade/bugs/4750669.html
Comment 7 Quality Engineering 2010-04-29 09:11:34 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.