const char* kConsoleMessageLogTag = "ConsoleMessage";
const char* kDebugKey = "debug";
+const char* kVerboseKey = "verbose";
const char* kPortKey = "port";
const char* kAppControlEventScript =
NativeWindow* window, std::unique_ptr<common::ApplicationData> app_data)
: launched_(false),
debug_mode_(false),
+ verbose_mode_(false),
ewk_context_(
ewk_context_new_with_injected_bundle_path(INJECTED_BUNDLE_PATH)),
window_(window),
debug_mode_ = true;
LaunchInspector(appcontrol.get());
}
+ if (appcontrol->data(kVerboseKey) == "true") {
+ verbose_mode_ = true;
+ }
// TODO(sngn.lee): check the below code location.
// in Wearable, webkit can render contents before show window
debug_mode_ = true;
LaunchInspector(appcontrol.get());
}
+ if (!verbose_mode_ && appcontrol->data(kVerboseKey) == "true") {
+ verbose_mode_ = true;
+ }
window_->Active();
}
static bool enabled = (getenv(kConsoleLogEnableKey) != NULL);
enabled = true;
- if (debug_mode_ || enabled) {
+ if (debug_mode_ || verbose_mode_ || enabled) {
int dlog_level = DLOG_DEBUG;
switch (level) {
case EWK_CONSOLE_MESSAGE_LEVEL_WARNING: