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.
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); } }
fixed in the main trunk
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); ... }
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); } }
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.
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
This issue originates in JPDA and reproduces nicely in other debuggers. BugParade #4750669. http://developer.java.sun.com/developer/bugParade/bugs/4750669.html
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.