codepath / codepath/nodejs_guides

Debugging

Aperta
#10 0 commenti 0 reazioni 1 assegnatario Rivendicata da @CrabDude Vedi su GitHub
help wanted
Lingua principale
Nessun dato sulla lingua
Stelle
74
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

- 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.