In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
IDEA in how to connect tomcat remotely, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Open the debug port and start tomcat
Take tomcat7.0.75 as an example. Open the catalina.bat file in the bin directory. As shown in the following figure, you can see that the default debug port is 8000. If the local 8000 is already occupied, change it to an unoccupied port number:
Execute the command catalina.bat jpda start in the bin directory to start tomcat and open the port for remote debugging
Remotely connect tomcat in Intellij idea
Now that a web project (preferably a maven project) has been opened in Intellij idea and deployed to tomcat, click the "run" button in the red box below, and click "Edit Configurations..." in the drop-down menu:
Click "+" in the pop-up menu and then click "Remote":
As shown in the following figure, change the number in the red box to "8000". As for the number in the blue box, it will change automatically with the change in the red box. If tomcat is deployed on other machines, enter the ip of the machine where tomcat belongs in the Host input box on the left side of the red box:
After setting up, click "ok" below, return to the main window, click the drop-down menu in the red box below, select the debug configuration item we just created, and then click the bug button in the blue circle to connect to the debug port of tomcat:
Now the breakpoint is in the project. If the breakpoint is executed, it will enter the debug status. As shown in the figure below, I have made a breakpoint in the source code of spring. When the project starts, it will enter:
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.