In my previous blog post I have shown you how to install apache tomcat in Ubuntu. We can run apache tomcat in debug mode and debug our applications. First you should download and installed tomcat in your machine.
There are two ways to run apache tomcat in debug mode
I) Using jpda run
First you have to set jpda environmental variables. Please remember set this variable only one time. Don’t set this variable every time you are going to start the server. It will cause to an error.
Then run the tomcat server in debug mode using following command.
or going to the bin of your tomcat folder in the terminal and run the following command
Same as the previous method you have to set one environmental variable . First go to the bin directory on your tomcat folder and run the following command. Don’t set this variable again and gain, only one time is enough.