In the “Run” menu, select “Add configuration.”.Luckily, you can add new configurations to the debugger. With particularly tough bugs, there’s a chance that the database you have on VSCode doesn’t have the configuration you need. You can also access the debugger menu by first accessing the Command Palette by pressing “Ctrl+Shift+P”.Select “Launch Program.” Once you’ve selected it, press F5 to start the debugger.In the Run view of VSCode, find “Configuration dropdown.”.To run the debugger, we will first need to select our launch configuration. Now that all of the preparation is done, we can start our debugging session. To check the debugger’s attributes, press “Ctrl+Space”.Check under your folder “hello.” There should be a tab called “.vscode” and the launch.json should be in that tab.Go back to the File Explorer by pressing “Ctrl+Shift+E.”.VSCode will automatically select the debug environment, but if it doesn’t detect anything, select “Node.js.”.In the “Run view” menu, select “create a launch.js.”.Note that you’ll need to have this program before you can finally run the debugger. Think of it as a note taker for your coding. This will save you time if you run into the same bug that previously occurred. It will automatically save any new settings and configuration changes you make while debugging. For the purposes of this guide, select the “create a launch.js” option.Ī launch.js program is called a launch configuration program. A menu will appear with three options.You can also quickly access it by pressing “Ctrl+Shift+D” on your keyboard. On the sidebar of VSCode, select the “Run” icon.It also includes a taskbar where you can configure settings and debugging commands. When you first start, you’ll need to familiarize yourself with the all of the information the debugger has for you. Run Viewįrom here, you’ll be able to utilize all of VSCode’s debugging features. The output will say “Hello, World.”Ĭongratulations, you’ve written your first program and are now ready to run VSCode’s debugger. Save the file by pressing “Ctrl +S” on the keyboard.In the console command, type the following code:.Your file should show up with the name “Hello.” Click the “New File” button on the right side of the file name. Open VSCode and in the command prompt, type the following code:.Create an empty folder on your Desktop and name it “hello.”. The version of Node.js you installed should appear.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |