Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Created February 3, 2012 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuellr/312a55532fac0296f2ab to your computer and use it in GitHub Desktop.
Save pmuellr/312a55532fac0296f2ab to your computer and use it in GitHub Desktop.
the anal retentive stack trace
---------------------------------------------------------
error: ReferenceError: description is not defined
---------------------------------------------------------
stack:
WeinreTargetCommands.coffee:21 - WeinreTargetCommands.registerTarget()
messageHandler.coffee:29 - MessageHandler._serviceMethodInvoker()
messageHandler.coffee:15 - MessageHandler.handleMessage()
Channel.coffee:74 - Channel.handleMessages()
HttpChannelHandler.coffee:102 - handlePost()
HttpChannelHandler.coffee:64 - HttpChannelHandler.baseHandle()
HttpChannelHandler.coffee:40 - HttpChannelHandler.handle()
weinre.coffee:83 - app.use.express.errorHandler.dumpExceptions()
index.js:272 - callbacks()
index.js:246 - param()
@pmuellr
Copy link
Author

pmuellr commented Feb 3, 2012

should note, the line numbers for the .coffee files reflect the generated JS, not the CoffeeScript file (FOR NOW!)

@pmuellr
Copy link
Author

pmuellr commented Feb 3, 2012

Guess I should really line up the file extensions on the left hand side, then right indent the line numbers, separating the file name from the line number with whitespace. THIS WEEKEND!

@pmuellr
Copy link
Author

pmuellr commented Feb 3, 2012

so, it should look like this:

---------------------------------------------------------
error: ReferenceError: description is not defined
---------------------------------------------------------
stack: 
   WeinreTargetCommands.coffee  21 - WeinreTargetCommands.registerTarget()
         messageHandler.coffee  29 - MessageHandler._serviceMethodInvoker()
         messageHandler.coffee  15 - MessageHandler.handleMessage()
                Channel.coffee  74 - Channel.handleMessages()
     HttpChannelHandler.coffee 102 - handlePost()
     HttpChannelHandler.coffee  64 - HttpChannelHandler.baseHandle()
     HttpChannelHandler.coffee  40 - HttpChannelHandler.handle()
                 weinre.coffee  83 - app.use.express.errorHandler.dumpExceptions()
                  index.js     272 - callbacks()
                  index.js     246 - param()

@pmuellr
Copy link
Author

pmuellr commented Feb 3, 2012

BTW, this stack trace was created in node using V8's stack trace API.

@pmuellr
Copy link
Author

pmuellr commented Jun 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment