Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Debug Node Applications with Visual Studio Code!
You have completed Debug Node Applications with Visual Studio Code!
Preview
The first step in debugging with VS Code is setting a breakpoint to pause your program at a specific line of code.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
the current state of the app and
identify the problem.
0:00
That's because I haven't specified a place
in the code where I want to pause debug or
0:01
execution.
0:05
This is the first step in debugging.
0:06
Pause your program at
a specific line of code.
0:07
So I'll first identify where in
the code I'd like to pause execution.
0:10
This might even be the same line where
you'd place a console dot log statement,
0:13
for example.
0:17
I'll switch to the VS code file
explorer by clicking the file symbol
0:17
in the left side bar, then click on the
file app dot js to open it in the editor.
0:22
Again, the issue happens
when you click o milo, for
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up