Start in frontend with split screen loading source for an API fetch using GET.
45a7-a274-d9e2cd8a5ebb">
code
Set break point on fetch, inside .then, inside .fetch
Run frontend, screen capture break at fetch while examining Body
Press play on frontend, observe stop inside of backend
Press step over on backend until you have obtained data from database, screen capture Python Object
Press play button to end backend debugging session.
Return to frontend debug session
Step in until you see data, screen capture capturing break point and Data.
Peer grade: (1.86/2) I follow the canvas steps and change the code in the front end a bit to see how the error changes and reacts to my changes. I practice the debugging skills by going through console in frontend and then debugging in the backend as well. I encounter the error and realize that my backend server wasn't turned on. To fix it, I type "python main.py" and it allows for me to have my backend running. Once the backend runs, the logs work and the posts can be fetched/can be seen.
To start with, I ran my frontend without running the backend, and then I received an error. Through debugging I realized I need to run backend.
Start backend using Debugging
Set break point at the beginning of endpoint <img width="1221" alt="Screenshot 2024-03-10 at 2 16 06 PM" src="https://github.com/Arushi-maker/students/assets/75818107/6125d47f-be31-
Start in frontend with split screen loading source for an API fetch using GET.
45a7-a274-d9e2cd8a5ebb"> code
Set break point on fetch, inside .then, inside .fetch
Run frontend, screen capture break at fetch while examining Body
Press play on frontend, observe stop inside of backend
Press step over on backend until you have obtained data from database, screen capture Python Object
Press play button to end backend debugging session.
Return to frontend debug session
Step in until you see data, screen capture capturing break point and Data.
Peer grade: (1.86/2) I follow the canvas steps and change the code in the front end a bit to see how the error changes and reacts to my changes. I practice the debugging skills by going through console in frontend and then debugging in the backend as well. I encounter the error and realize that my backend server wasn't turned on. To fix it, I type "python main.py" and it allows for me to have my backend running. Once the backend runs, the logs work and the posts can be fetched/can be seen.