Skip to content

Latest commit

 

History

History
74 lines (62 loc) · 2.32 KB

README.md

File metadata and controls

74 lines (62 loc) · 2.32 KB

NewRelic One Debugger Extension for Visual Studio Code

VisualStudio Marketplace VSCodeVersion

Debug New Relic One application on Visual Studio code using this extension.

Features

Generate Chrome and Firefox launch configuration for debugging New Relic One applications (Nerdpack). Create launch configurations for:

  1. Chrome browser
  2. Firefox browser

Requirements

Visual Studio Code Debugger extension:

Installation

  1. Open Run/Debug viewlet and select create a launch.json file.
  2. Create launch configuration for either Chrome or Firefox from the dropdown choose either:
> NR1: Chrome Launch
  NR1: Firefox Launch

Launch Configurations

Chrome Browser

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Nr1: Chrome Launch",
      "type": "chrome",
      "request": "launch",
      "smartStep": true,
      "showAsyncStacks": true,
      "url": "https://one.newrelic.com/launcher/nr1-core.home?nerdpacks=local",
      "pathMapping": {
        "webpack://__nr_modules./[name]/nerdlets": "${workspaceFolder}/nerdlets"
      }
    }
  ]
}

Firefox Browser

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "NR1: Firefox Launch",
      "type": "firefox",
      "request": "launch",
      "reAttach": true,
      "url": "https://one.newrelic.com/launcher/nr1-core.home?nerdpacks=local",
      "pathMappings": [
        {
          "url": "webpack://__nr_modules./[name]/nerdlets",
          "path": "${workspaceFolder}/nerdlets"
        }
      ]
    }
  ]
}