Skip to content

Find a better way to enable when/debug in Node/RingoJS #34

Closed
briancavalier opened this Issue Apr 27, 2012 · 5 comments

3 participants

@briancavalier
The Javascript Architectural Toolkit member

Since Node and (as far as I know) RingoJS don't have a way to remap module paths, as AMD does, right now, the only way to globally enable when/debug is to modify when.js's package.json, which pretty much stinks.

There needs to be an easier and less dangerous way.

One option may be for when.js itself to look for a boolean on Node's global, and then require and set its exports to when/debug.

@leeoniya

also need a way to run the debug version in browsers/legacy...i've been fighting the regular build that swallows native uncaught exceptions like ReferenceError, etc...

any pointers? thx!

@briancavalier
The Javascript Architectural Toolkit member

@leeoniya I created a separate issue for this. I'll put together a shim soon to enable debug.

@briancavalier
The Javascript Architectural Toolkit member

when/debug is likely going to be deprecated soon in favor of the new when/monitor/* stuff that just landed in dev. It'll work in all supported environments (no legacy env support atm). All you have to do is load when/monitor/console as soon as possible after startup. If you have unhandled rejections, it'll report them to the console with long stack traces.

@briancavalier
The Javascript Architectural Toolkit member

Closing this and calling when/debug deprecated.

@unscriptable
The Javascript Architectural Toolkit member

yay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.