mirror of https://github.com/vitalif/phantomjs
Enable remote debugging.
This is just applying enable_debugger.patch. See also https://github.com/ariya/phantomjs/pull/173. http://code.google.com/p/phantomjs/issues/detail?id=61.5
parent
714642c66c
commit
b7a69df6ec
|
@ -40,7 +40,7 @@ var Preferences = {
|
|||
showMissingLocalizedStrings: false,
|
||||
samplingCPUProfiler: false,
|
||||
showColorNicknames: true,
|
||||
debuggerAlwaysEnabled: false,
|
||||
debuggerAlwaysEnabled: true,
|
||||
profilerAlwaysEnabled: false,
|
||||
onlineDetectionEnabled: true,
|
||||
nativeInstrumentationEnabled: false,
|
||||
|
@ -58,7 +58,7 @@ WebInspector.Settings = function()
|
|||
{
|
||||
this.installApplicationSetting("colorFormat", "hex");
|
||||
this.installApplicationSetting("consoleHistory", []);
|
||||
this.installApplicationSetting("debuggerEnabled", false);
|
||||
this.installApplicationSetting("debuggerEnabled", true);
|
||||
this.installApplicationSetting("domWordWrap", true);
|
||||
this.installApplicationSetting("profilerEnabled", false);
|
||||
this.installApplicationSetting("eventListenersFilter", "all");
|
||||
|
|
|
@ -161,7 +161,7 @@ void QWebInspector::showEvent(QShowEvent* event)
|
|||
#if ENABLE(INSPECTOR)
|
||||
// Allows QWebInspector::show() to init the inspector.
|
||||
if (d->page)
|
||||
d->page->d->inspectorController()->show();
|
||||
d->page->d->inspectorController()->showAndEnableDebugger();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue