1>Go to Run>Edit Configurations
Create a configuration under remote
In "Search sources using Module's classpath", select the project that you want to debug
(In your catalina.bat you will have something like this set JPDA_ADDRESS=localhost:8000)
2>Start tomcat server using the command (the switch jpda is what enables debugging)
catalina.bat jpda start
You can also use the below command, if you want to make a copy of tomcat console into a file
catalina.bat jpda run > catalina.out
You can also use the below command, if you want to make a copy of tomcat console into a file
catalina.bat jpda run > catalina.out
3>Click the bug symbol on the upper right corner of intelliJ
4> If everything goes well, you should this in your console.
No comments:
Post a Comment
Comments will appear once they have been approved by the moderator