Preface whether the server is Tomcat or JBoss, it is the same as long as the Web project is debugged.
A Web project 1, deployment project, 2, in debug mode, 3, because it is the project in the Myeclipse/eclipse deployment to the server, so Myeclipse/eclipse project source code and deployed to the server project source code is the same, So when the IED runs the project in debug mode, the IDE enters the breakpoint in the project's source code.
Multiple Web projects 1, deploy multiple projects, 2, run in debug mode, 3, because it is the project in the Myeclipse/eclipse deployed to the server, so Myeclipse/eclipse project source code and deployed to the server project source code is the same, So when the IED runs the project in debug mode, the IDE enters the breakpoint in the project's source code.
A Web project, multiple Java projects assume that a system has a Web project, and several Java projects that you write yourself. 1, right-click Web Project-"Build Path-" project: Add dependent projects, that is, those Java projects, 2, Deployment projects, 3, run in debug mode, 4, because it is the MYECLIPSE/ECLIPSE project deployed to the server, so myeclipse/ The source code of the project in Eclipse is the same as the source code of the project deployed to the server, so when the IED runs the project in debug mode, the IDE enters the breakpoint in the project's source code.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
How to debug a Web project