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=6
1.5
Ariya Hidayat 2012-03-06 19:26:13 -08:00
parent 714642c66c
commit b7a69df6ec
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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
}