vynx1 / student_csp

A cummilative project consisting of work in my AP Computer Science Principal Class. Acts as a personal blog and storage for various coding projects such as AI Flappy Bird.
MIT License
0 stars 0 forks source link

Debugging Correct One: #6

Open vynx1 opened 3 months ago

vynx1 commented 3 months ago
  1. Start Backend Using Debugging:

    Screenshot 2024-03-11 at 6 12 52 PM
  2. Set Break Point in the Songs Model Code:

    Screenshot 2024-03-11 at 6 15 44 PM

3: Start Frontend in Split Screen and Set Up Breakpoints:

Screenshot 2024-03-11 at 6 22 01 PM

4: Set Breakpoints:

Screenshot 2024-03-11 at 6 24 56 PM

5: Run Frontend Capture Breakpoint( Here I set the break point at a function and it stopped)

Screenshot 2024-03-11 at 6 29 26 PM

my current error:( Here it shows proof that after setting a breakpoint on the fetch the code entirely breaks and website won't load. I suspect this is because the function did complete the try block, but the stop happens after the try block that the stop just gets confused and endlessly loads, kinda a cool conecept)

Screenshot 2024-03-11 at 6 38 30 PM

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

Screenshot 2024-03-11 at 6 34 36 PM

7: Press step over on backend, observe python variables:

Screenshot 2024-03-11 at 6 40 38 PM

8: Press play on backend:

Screenshot 2024-03-11 at 6 42 07 PM

9: Return to Frontend,

10: Step in Until you see the data screens and everything works fine.

Screenshot 2024-03-11 at 6 49 16 PM