Operation of the project idea and start debugging [five]

1. Project launch configuration

A Usage: -D startup parameter can override application.properties configured to
Here Insert Picture Description
use two: with a multi maven environment (development, production, testing environment) switch
Here Insert Picture Description

2. hot deployment

Add the following dependent pom.xml
Here Insert Picture Description
Here Insert Picture Description

3. breakpoint debugging

3.1 Debug Button Description

Current methods of performing the next line 1.
2. The method of entering the body called the current row
3. The method call into the line where the line
4 to the line where the cursor is quickly execute
a breakpoint execution to the next breakpoint 5. If the absence or commissioning endHere Insert Picture Description

3.2 breakpoints

3.2.1 Right small amount breakpoint breakpoint operation, uncheck Enabled, may retain the position of the breakpoint, but also skip them

Here Insert Picture Description

3.2.2 breakpoints when more than a batch operation

Here Insert Picture Description

3.2.3 cancel all breakpoints

Here Insert Picture Description

3.2.4 conditional breakpoint

Usage 1: When loop is executed many times to stop
Here Insert Picture Description
the use of two: When a property value equal to the desired stop

3.2.5 exception breakpoint

When the program appears to stop the development of abnormal
Here Insert Picture Description
Here Insert Picture Description
To stop execution when there
Here Insert Picture Description

3.2.6 Breakpoint variable monitoring

Debugging can see the value of a variable
Here Insert Picture Description

Published 11 original articles · won praise 0 · Views 616

Guess you like

Origin blog.csdn.net/fei1234456/article/details/104698844