5

How can we print logs in the console without actually adding sysout or logs to the code in intellij idea debugger ?

Robert Ravikumar
  • 912
  • 2
  • 11
  • 29

1 Answers1

4

youtube link intellij debugger logging

Step 1 set a break point

Set a break point

step 2 right click the debug point and uncheck suspend - you should see breakpoint turn yellow.

enter image description here

step 3 check evaluate and log and enter your logger statement

enter image description here

Step 4 debug your program to see the logs printed using intellij debugger and not using loggers in code

enter image description here

Robert Ravikumar
  • 912
  • 2
  • 11
  • 29