指定使用Netbeans进行调试的源 [英] Specifying Source for Debugging using Netbeans

查看:128
本文介绍了指定使用Netbeans进行调试的源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Netbeans 6.1中的调试器,我想进入JSF库的方法(特别是StateManager类的方法saveSerializedView),但是我无法弄清楚如何通过IDE指定源代码的位置. JSF库.我什至在确定Netbeans将哪个jar文件用于JSF时遇到麻烦.

Using the debugger in Netbeans 6.1, I'd like to step into a method of the JSF library (specifically method saveSerializedView of class StateManager), but I cannot figure out how to specify through the IDE the location of the source code for the JSF library. I'm even having trouble determining which jar file or files Netbeans is using for JSF.

推荐答案

此答案适用于大约2008年9月的Netbeans 6.1:

This answer applies to Netbeans 6.1 circa September 2008:

听起来好像您需要浏览库"对话框.从菜单栏中选择工具",从菜单中选择库".如果选择左侧的"JSF",则会看到jar文件,源(当前在Netbeans 6.1中没有)和javadoc(在Netbeans中显示javaee5-doc-api.zip)的关联.

It sounds as if you need to explore the "Libraries" dialog. Select "Tools" from the menu bar and "Libraries" from the menu. If you select "JSF" on the left, you'll see an association of jar files, sources (currently none in my Netbeans 6.1) and javadoc (which shows javaee5-doc-api.zip in my Netbeans).

您需要做的是在"Sources"标签下添加一个新的zip或一罐源文件.

What you need to do is add a new zip or jar of source files under the "Sources" tag.

"Swing Layout Extensions"是一个完全填充的库的示例,其中包含一个jar文件,源代码和javadoc.

An example of a fully populated library is the "Swing Layout Extensions" which has a jar file, sources and javadoc.

这篇关于指定使用Netbeans进行调试的源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆