Open vibha-yganji opened 9 months ago
0.86: shows good understanding of how to use the breakpoints to fix the errors, but could show a bit more on the process of how it works
Starts off well. Not very convincing when you are asked to show data and steps.
Error of Interest
Issue - Login does not work despite entering a registered user.
I create a new user and enter the corresponding credentials on login page that I am redirected to following successful login.
The schema table on the backend is update with the details of the new user.
Attempting to provide the same credentials in the login gives a Failed to Fetch error in the Chrome Dev Tools console.
Debugging Steps
A breakpoint is inside of the Security class in the backend which is the API endpoint for the login/authentication function.
[x] Set break point on fetch, inside
.then
, inside.fetch
Breakpoints are set in the fetch statement at both the fetch statement and the lines that are responsible for API error handling.
[x] Run frontend, screen capture break at fetch while examining Body
the body can be seen to contain the both the username and password that was entered into the login form fields.
[x] Press play on frontend, observe stop inside of backend
Running fetch statement on frontend causes the backend to stop at the breakpoint set inside of the login endpoint.
[x] Press step over on backend until you have obtained data from database, screen capture Python Object
Stepping through the backend allows me to see both the uid and password stored in the body proving that the login error does not arise from the fetch statement.
[x] Press play button to end backend debugging session.
[x] Return to frontend debug session
[x] Step in until you see data, screen capture capturing break point and Data.