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