Step 4 – Fail on Logging In
Failure is easy. Go to http://localhost:8080/ and try to login by pressing the button in that page. Notice that this will also work if you’re running or debugging remotely.
Once you fail to login go back to the IDE. You should see a snapshot like this:
This is a stack trace like any stack trace you have in the debugger. You can inspect variable values. Go up the stack and look at the values of variables there etc.
Notice I can see the principal and credentials values which helps me see what I did when trying to login
Important: Those of you who are security conscious might be justifiably concerned about the security implications involved. So once you get this working the manager of your Lightrun account can add these classes to the Lightrun blocklist and block the ability to place snapshots in these files!
Apply This to your Own Application
You will probably need to place a breakpoint in a different class in your authorization chain. Use the class explorer tool to find the appropriate entry point. Trial and error is pretty easy in this case.
Binding the agent and the rest of the instructions should apply almost exactly the same to most cases.