Debugging allows you to catch errors within different methods and allows you optimize code this is specific in PBL environments as it allows you to write java code and see which methods are causing you errors, additionally it allows you to understand code and how methods work like below I used my authenticate endpoint on users of login where I placed a breakpoint within the backend on the authentication requests by stepping over it doesn't allow you to login producing an error since to have access you need to be authenticated user, however if you remove the breakpoints its allows the user to login successfully.
Here is proof of this debugging session coming from my computer and no plagiarism
Debugging Assignment Krishiv Mahendru
Why we Debug?
Stepping In the Front-end
Backend Step
Frontend Data