The steps are as follows:
(1) Locate the –run– in the tab and find the –edit configurations
(2) Click on the green plus– to find Maven point in
(3) Fill in the following fixed values in command line and profiles as below, then fill in the path of your project in working directory
The command is: clean jetty:run -DskipTests
The name is random, this is called Jettydebug .
(4) You can also set the MVN clean install and mvn jetty:run in the same manner as the two commands
(5) In that case, we have three "shortcut keys".
(6) When debugging, just select the Jettydebug created in (3)
Then click on the back of the green triangle button, hit the breakpoint after the operation can enter the breakpoint for debugging.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Use jetty for debug mode debugging under Idea