codepath / codepath/nodejs_guides
Debugging
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 74
- Forks
- 18
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
- 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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.