sandip chitale's blog    Sandip Chitale's blog (scblog)
NOTE: I have moved many of my modules to NetBeans Plugin Portal . Please check there for latest versions of modules described on this blog.
20060920 Wednesday September 20, 2006

TIP: Debugging JDK classes with Netbeans

Many times one needs to debug (step) into the JDK classes. Most IDEs allow the user to associate the sources (JDK_INSTALLATION_DIR/src.zip file)with the JDK in use and step into the JDK sources.

In case of Netbeans stepping into JDK sources is disabled by default. As a result one is unable to step into the JDK sources. Another symptom of this is that the stack frames correspoing to the JDK sources are shown under the collapsed Hidden Source Calls node.To enable stepping into the JDK sources (or any other hidden source calls) do the following:

  • Start your debug session
  • Show the Sources window using Windows:Debugging:Sources(Alt+Shift+8 on Windows)menu item
  • Locate the JDK sources entry and select the checkbox under Use for debugging column.

I wish a tooltip on the Hidden Source Calls node could have some indication of this information. I have already filed and RFE for it.

In an upcoming blog entry I will explain how to view the local variable values in the JDK classes.


Posted by sandipchitale ( Sep 20 2006, 07:44:56 AM PDT ) Permalink Comments [2]


Trackback URL: http://blogs.sun.com/scblog/entry/tip_debugging_jdk_classes_with
Comments:

What a strange option. It seems that you can set a working breakpoint in Java library source. However, when you try to step, NetBeans steps out of line.

Posted by Tom Hawtin on September 20, 2006 at 10:49 AM PDT #

Could you please post the entry on how to 'view local variable values of the JDK classes' I've been waiting for a while now and I really need this for debugging my swing application.

Posted by Drapier Wim on October 27, 2006 at 01:47 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed








« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Get NetBeans 5.5

Locations of visitors to this page

Today's Page Hits: 116


XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

scblog
scblog