codepath / codepath/nodejs_guides

Debugging

Open
#10 0 comments 0 reactions 1 assignee Claimed by @CrabDude View on GitHub
help wanted
Dominant language
No language data
Stars
74
Forks
18
PR merge metrics
No merged PRs in 30d

Description

- Show how to log stack traces
- Always keep original error:
`node
promise.catch(e => {
let error = new Error('Authentication failed')
error.originalError = e
})
`
- And use long stack traces both longjohn and bluebird's
- Show how to use node-inspector (node & babel-node)
- `debugger;` --debug & --debug-brk
- Recommend step debugging boxed in IDEs
- [node-profiler](https://github.com/bnoordhuis/node-profiler)
- [node-webkit-agent](https://github.com/c4milo/node-webkit-agent)
- [node-block](https://github.com/tj/node-blocked) for watching event-loop latency
- [nodetime](https://nodetime.com)
- [new relic](http://newrelic.com/nodejs)

**What success looks like: Succinctness and clarity. Less is more.**
Reference Wikis: [Authentication & Authorization](https://github.com/codepath/nodejs_guides/wiki/Authorization-&-Authentication), [Setup](https://github.com/codepath/nodejs_guides/wiki/Setup)

Open separate issues for required links to community sources if you're having trouble finding any.

_Please assign to yourself before working on this._
/cc @NinjaSudo @philster @azoff @DiyahM

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.