问:netbeans 如何 debug

Benjamin0705 2009-08-14 03:17:31
环境:linux + netBeans + jdk6 + tomcat6

已经参考了如下操作:

netbeans -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8765

Attaching to the second instance of NetBeans:
In NetBeans, select menu item Debug | Attach.... A dialog appears:
Enter proper parameters...

* Make sure that you have selected "JPDA Debugger" in the Debugger Type combo-box.
* Make sure that the selected transport type matches the transport type specified in the command-line for starting NetBeans in debugging mode.
* (socket connection only) Enter port number. The port number must match the port number specified in the command-line for starting NetBeans in debugging mode.
* (shared memory connection only) Enter the shared memory name. It must match the name specified in the command-line for starting NetBeans in debugging mode.

... and press OK.

但还是不能调试单个文件。为什么?应该如何操作?
同样的如何DEBUG一个WEB项目?
...全文
277 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Benjamin0705 2009-08-17
  • 打赏
  • 举报
回复
问题很明确? 有人知道吗?
Benjamin0705 2009-08-17
  • 打赏
  • 举报
回复
请教高手们~~
Benjamin0705 2009-08-14
  • 打赏
  • 举报
回复
这是我参考的网页:http://debuggercore.netbeans.org/docs/How-to-debug-NetBeans.html

23,110

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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