Debug In SpringBoot app

Remember, Use arthas And watch command

  1. Log in to the machine where the app is running.
  2. Download the arthas.jar and run it
  3. Find the entry point. For this, I use a specific copy in IDEA and replace the symbol # with a whitespace.
  4. Run the following command: watch demo.ClassYouFind watchMethod '{params, returnObj}' -x 2
  5. Trigger the method to observe where it gets invoked.