0.0.13 • Published 10 years ago

breakdown v0.0.13

Weekly downloads
45
License
-
Repository
github
Last release
10 years ago

Breakdown

Top class error reporting for js & coffee-script

Install

npm install breakdown

Configure

Breakdown will handle all uncaught exceptions

# Far better error stack debugging. Do not use in production!
unless process.env.NODE_ENV

  # Breakdown will handle all uncaught exceptions
  breakdown = require 'breakdown'

  # Set as default error handler for express
  app.use (err,req,res,next) ->
    breakdown err
    res.writeHead 500, 'Content-Type': 'text/plain'
    res.end err.stack

Usage

breakdown = require 'breakdown'
breakdown new Error 'Hello World'

Example

TypeError: Cannot read property 'first_name' of undefined
    at test (/var/www/breakdown/test/test.coffee:22:53)
    at delegate (/var/www/breakdown/test/test.coffee:28:12)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

Screenshot

Breakdown

Bitdeli Badge

0.0.13

10 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago