用netbeans调试java程序,会进入java内部类,怎么跳过?

peade 2015-07-15 09:45:40
简单程序例子:
public class test {
public static void main(String[] args){
for(int i=0;i<20;i++)
{
System.out.println(i*i);
}
}

}

在for那一行设置断点。
对文件进行调试,单击步入,会进入内部类。
如图

有没有什么方法,不进入内部类运行?
...全文
229 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
peade 2015-07-23
  • 打赏
  • 举报
回复
引用 1 楼 nickycheng 的回复:
To enable stepping into JDK sources for a debugged application: 1. Start the debugger for the application. 2. Open the Sources window by choosing Window | Debugging | Sources or by pressing Alt-Shift-8. 3. Select the Use For Debugging checkbox for the JDK. 这个是开启jdk source debug的, 反过来,把对应那个勾掉应该就可以了
是 窗口-调试-源 么? 我点击后,没效果。按alt-shift-8也没反应。图标前面还是有勾的。
peade 2015-07-23
  • 打赏
  • 举报
回复
其他人想看解决方法的,请去我博客看。
peade 2015-07-23
  • 打赏
  • 举报
回复
引用 1 楼 nickycheng 的回复:
To enable stepping into JDK sources for a debugged application: 1. Start the debugger for the application. 2. Open the Sources window by choosing Window | Debugging | Sources or by pressing Alt-Shift-8. 3. Select the Use For Debugging checkbox for the JDK. 这个是开启jdk source debug的, 反过来,把对应那个勾掉应该就可以了
谢谢,我自己弄明白了。
nickycheng 2015-07-17
  • 打赏
  • 举报
回复
To enable stepping into JDK sources for a debugged application: 1. Start the debugger for the application. 2. Open the Sources window by choosing Window | Debugging | Sources or by pressing Alt-Shift-8. 3. Select the Use For Debugging checkbox for the JDK. 这个是开启jdk source debug的, 反过来,把对应那个勾掉应该就可以了

50,889

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧