Installation
Requirements
- Node 10+
Install guide
- Install the nerd.vision package
npm i @nerdvision/agent
- Import it into your application
import {nerdvision} from '@nerdvision/agent'
(you can also use requireconst {nerdvision} = require('@nerdvision/agent')
) - As early as possible in the node app, add
nerdvision.init('API_KEY')
- Replace 'API_KEY' with your API key from NerdVision Account
- The
init
function returns a promise. Once this has resolved, you're good to go
Configuration
To see what options are available for configuring the agent, take a look at the Configuration
What's next?
After you install the agent, here are some suggestions for what to do next:
- Login to debugger and create a workspace for your app.
- Set a tracepoint on a line of real code (not comments) by clicking in the gutter.
- Execute an action in the app that will cause the tracepoint to fire and a snapshot should arrive.
- Look at the snapshot to see what live data from you app looks like.
- Debug all your apps!
Known issues
- We currently use your package.json file as a reference for the root of the project. This means that the package.json must be in the root directory of your repository.
- When using a pre-processor for JavaScript, such as TypeScript, if files are lazy loaded at runtime their tracepoints may not trigger until they have been run for a second time.
Need more help?
- Contact Support at support@nerd.vision
- You can also find us on Twitter and Facebook