Visual Studio Code: Open current HTML file in browser (launch. json) I am using Visual Studio Code and would like to debug the currently open HTML file in a web browser, Microsoft Edge in this case My project folder is the webroot of a locally installed web server (http: localhost)
Browser debugging in VS Code You can either "launch" a browser with your application, or "attach" to an existing browser that you started in debug mode Below is a reference of common launch json attributes specific to browser debugging
How to debug in VS Code by attaching to Edge browser? Have you launched the page you want to debug in Edge first before you start to debug in VS Code? "request": "attach" means attaching the debug to an existing instance For example, I need to debug this page https: localhost:44364 test html, then I'll navigate to this url in Edge after start msedge exe --remote-debugging-port=9222
edge-developer microsoft-edge visual-studio-code microsoft-edge . . . Visual Studio Code uses a launch json file to define debug configurations To use the DevTools extension, a launch json file is only needed if you want to use the debugger and your webpage requires running on a web server, not just a local file system
Debug Browser Apps using Visual Studio Code Use a launch config to launch a browser with your app We also have more detailed walkthroughs to get started with React, Angular, and Vue, as well as other debugging recipes
How to Configure Edge for Running Automation Scripts Following the steps outlined in this guide, from installing Edge and its WebDriver to using popular frameworks like Selenium and Puppeteer, you can harness Edge’s capabilities to simplify and streamline your automation tasks