Skip to content

Vardaan Sinha - Debugging #44

Description

@vardaansinha

image

First, I setup the breakpoints at the beginning of the endpoint code in the frontend.

NOTE: The bottom right (computer name) shows that this is my machine and it was all run on my machine.

image

After pressing play on the frontend and then running + debugging on the backend, I added a breakpoint where the ArrayList is stored with comments for each game. In the screenshot above, it shows how all the comments in the ArrayList are being populated for the current game (as seen in the frontend screenshot, "Current").

image

In this last screenshot, the backend data goes to the frontend and is loaded up.

Overall: I think that debugging is a very useful skill, especially when we have complicated functions or whatnot that we need to debug errors for. Furthermore, you don't have to console.log everytime you want to find an error. For example, in the frontend, if you are debugging, you can access the data:

image

I think this would be even more useful in a larger codebase, where there is data coming in from multiple locations and you don't want to have to System.println everytime to figure out what your error is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions