Debug New Relic One application on Visual Studio code using this extension.
Generate Chrome and Firefox launch configuration for debugging New Relic One applications (Nerdpack). Create launch configurations for:
- Chrome browser
- Firefox browser
Visual Studio Code Debugger extension:
- Open Run/Debug viewlet and select
create a launch.json file
. - Create launch configuration for either Chrome or Firefox from the dropdown choose either:
> NR1: Chrome Launch
NR1: Firefox Launch
{
"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"
}
}
]
}
{
"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"
}
]
}
]
}