RaveJS / rave

Zero-configuration application bootstrap and development
278 stars 8 forks source link

Rave should default to "debug mode" except for production. #62

Closed unscriptable closed 10 years ago

unscriptable commented 10 years ago

We've been having a hell of a time debugging rave-based projects. The problems have been primarily due to bugs in browsers and browser debuggers when using the most efficient method for evaluating source code: new Function(source). There are few tickets for these bugs, but they have been neglected, some for years. I implemented some alternative versions of code evaluation functions using script injection and these are much, much more debuggable. Script injection isn't nearly as efficient, so we don't want to use this in production (ignoring CSP environments for now).

Obviously, decent debugging should be the default regardless of CPU, memory, and code bulk during development.

This got me thinking. After a quick convo with @briancavalier, I'm thinking that rave should be in "debug mode" by default. Debugging should be "off" only when building for production or when explicitly specified by the developer.

I decided to defer these until later:

briancavalier commented 10 years ago

:+1: