Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>browser-consoleNew to Visual Studio Code? Get it now.
browser-console

browser-console

Johnny Rocket

|
4,909 installs
| (1) | Free
BrowserConsol extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Browser Console

The Browser Console allows you to see console.log statements from the browser in the editor.

Usage:

  1. Start the development server.
  2. Set the port to confugure browserConsole.port
  3. Launch the virtual browser
    • with the command BrowserConsole: Start
    • or via Status bar panel BConsole > BrowserConsole: Start
  4. Open the Browser Console view in the Menu panel

Features

Decorate the line

Alt text


Show object property descriptors and hide enumerable property

Alt text


Go to line

Alt text


Routing

Configuration browserConsole.routes, for example:

{
  "browserConsole.routes": [
    {
      "route": "/",
      "events": []
    },
    {
      "route": "/movie-page",
      "events": []
    }
  ]
}

Custom events

Configuration browserConsole.routes, for example:

{
  "browserConsole.routes": [
    {
      "route": "/",
      "events": ["click 'button.click-me' 1000"]
    }
  ]
}

This configuration dispatches index page click event on html elements button.click-me after page load and timeout of 1000ms. document.querySelectorAll used for searching.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft