-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify use of DEBUG in standalone version #153
Comments
Would love to see DEBUG working in the standalone version. It would help me so much. |
+1 |
I came across this issue too. The lack of documentation on the standalone version specifics is a frustrating issue as well. |
+1 |
Looks like the debug module has been left out of the standalone version during the build process. You can fix this and do a manual build (provided you have Node) in order to activate debugging with the standalone version:
flight.debug.enable(true);
DEBUG.events.logAll(); Lastly: when building your Flight component(s), pass var myWidget = flight.component(init, flight.logger);
function init () { ... } // lib/index.js
define(
[
'./advice',
'./component',
'./compose',
'./debug',
'./logger',
'./registry',
'./utils'
],
function(advice, component, compose, debug, logger, registry, utils) {
'use strict';
return {
advice: advice,
component: component,
compose: compose,
debug: debug,
logger: logger,
registry: registry,
utils: utils
};
}
); I've sent a pull request (#258) to try to get this incorporated into Flight master. |
Correction; I wasn't using the correct form to enable debug logging. The correct method is like so: flight.debug.enable(true); // Must pass true (or false)
DEBUG.events.logAll(); |
This will be fixed when #294 is merged. |
Applied in e66b0ec |
Doesn't seem like you can use DEBUG in the standalone version, but it's still bundled.
The text was updated successfully, but these errors were encountered: