Skip to content

Debugging

tzaika edited this page Feb 19, 2021 · 2 revisions

Debug the locally running application

Debugging using IntelliJ features, and the embedded Spring Boot Tomcat is actually very simple.

  1. Set the breakpoint at the desired place

local_debugging1


  1. Start the main application in debug mode

local_debugging2


  1. For example: Trigger the rest controller using the Swagger functions

local_debugging3


  1. You will be automatically directed to the IntelliJ app when the program goes through your breakpoint (The tick at the breakpoint is a good sign that this code point will be run through in debug mode)

  2. You can see the state of the variables

  3. You can use IntelliJ functions to perform step-by-step debugging

local_debugging4


Debug the running application in the Docker container

todo: describe

Clone this wiki locally