jplip / justin2.0

This is my individual blog.
https://jplip.github.io/justin2.0/
Apache License 2.0
0 stars 0 forks source link

Debugging Review #6

Closed jplip closed 6 months ago

jplip commented 7 months ago

Debugging/Tracing code...

Build a code debugging blog using this as a guideline. Be sure to read canvas to optimize opportunities for points.

1. Start backend using Debugging

Screen Shot 2024-03-05 at 10 53 25 AM

2. Set break point at the beginning of endpoint code

Screen Shot 2024-03-06 at 10 22 23 PM


Looking for why my login doesn't work and can't sign in.

3. Start in frontend with split screen loading source for an API fetch using GET.

Screen Shot 2024-03-06 at 10 29 27 PM

4. Set break point on fetch, inside .then, inside .fetch

Screen Shot 2024-03-07 at 10 11 36 PM


Set break points in the frontend as well to catch the fetch issues.

5. Run frontend, screen capture break at fetch while examining Body

Screen Shot 2024-03-07 at 10 06 57 PM

6. Press play on frontend, observe stop inside of backend

Screen Shot 2024-03-06 at 10 36 29 PM

7. Press step over on backend until you have obtained data from database, screen capture Python Object

Screen Shot 2024-03-06 at 10 37 13 PM


Looking at the user data that is inputed from the frontend to the backend.

8. Press play button to end backend debugging session.

Screen Shot 2024-03-06 at 10 37 42 PM


The problem is the user or password.

Screen Shot 2024-03-06 at 10 38 13 PM

9. Return to frontend debug session

Screen Shot 2024-03-06 at 10 40 56 PM

10. Step in until you see data, screen capture capturing break point and Data.

Screen Shot 2024-03-11 at 10 19 53 AM


Knowing the problem, I figure out the name or password is wrong and change the username.

Screen Shot 2024-03-11 at 10 22 18 AM


It works and problem was user id. This then redirects to the update page of all accounts in the database.

Screen Shot 2024-03-11 at 10 22 57 AM
jm1021 commented 7 months ago

Good sequence of steps. Good illustrations at showing data. Perhaps a little more clarity on which line you were at when you shared the data.

iKAN2025 commented 7 months ago

1.85 Sequence of Steps/Everything Completed Had stuff working

Lin-cT commented 7 months ago

I like that it clearly shows the images and body, and I am able to follow through the steps. Very concise, but I feel like some extra comments talking about the code would have been nice.

1.85/2.0