Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging Review #9

Open
JishnuS420 opened this issue Mar 8, 2024 · 0 comments
Open

Debugging Review #9

JishnuS420 opened this issue Mar 8, 2024 · 0 comments

Comments

@JishnuS420
Copy link
Owner

First, we run the backend debugged server and add some breakpoint into the code that we are going to be experimenting and testing with:
image

Then we navigate to our frontend working site and add some breakpoints into the code so that we can test our fetch for the JWT login API:
image

Then we go ahead and input the login credentials onto the frotend input and once you go back and navigate to the debug tab in your backend, you should see the code in the backend stopping at the breakpoint that we set at the start:
image

Because there is a breakpoint, we cannot run the local server and it would be down and unable to be accessed meaning that the data would also be unaccessible:
image

After going past all the breakpoints, we can see the success by the fact that the actual local host is running:
image

You can see after all the breakpoints are passed, we are able to see the login data being represented in the frontend so it can be used by the client:
image

Overall, debugging is a really improtant process and one that is really valuable especially to make sure that your code is working as it should and it is also a way for you to understand maybe some flaws that your code might have. Debugging definetly has a lot of application irregardless of what yur coidng, big or small but is a great way to undertsand the flow of data and as well ad how a fetch is operating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant