![]() ![]() If you use Microsoft Edge as your debugging browser, you also get something extra. You also have full access to the window object and the DOM of the current page, for example, to change the background colour of the document, you can use $('h1').style.background = 'peachpuff' (and not what I did first in the screenshot).įor all the features of Console, check the documentation. This is a full REPL console, and you can just type in any JavaScript to try out, for example 2+3 or 'log'.repeat(20). You get all the information about the body element of the current document. Try it out by using $('body') in the Debug Console. You also have access to all the convenience methods, like $ for document.querySelector. ![]() You can use the Debug Console to do anything you normally do in the Console of the browser tools. Visual Studio Code now opens a browser window for you and you can see the console.log() message from the demo code in the Debug Console. Step 5: Select the Run and Debug icon and press the Run and Debug button Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |