问:netbeans 如何 debug
环境: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项目?