trevorhuang1 / csp_blog

Other
0 stars 0 forks source link

Trevor Huang - Debugging Issue #7

Open trevorhuang1 opened 8 months ago

trevorhuang1 commented 8 months ago

Start backend using Debugging Debugger is running on cpt-frontend image

Set breakpoint at the beginning of endpoint code Backend endpoints image

Start frontend with split screen loading source for an API fetch using GET. Options which has a method GET and also URL which the GET request is being sent to image

Set breakpoint on fetch, inside .then, inside .fetch Fetch request uses the option and URL defined above. There is also a breakpoint where the data is returned image

Run frontend, screen capture breakpoint at fetch while examining Body image image

Press play on frontend, observe stop inside of backend image

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

Press play button to end backend debugging session. image

Return to frontend debug session The table is empty image

Step in until you see data, screen capture capturing breakpoint and Data. This is the data of the users within the table image