crosswalk-project/crosswalk — pull request #2338 by iKevinHan (2014-08-22 04:43:56+00:00)
Title: [Tizen] Implement "xwalkctl -d PORT_NUMBER" to dynamically enable remote debugging mode

With this patch, to enable remote debugging, we don't need to modify the
configure file "/usr/lib/systemd/user/xwalk.service" and restart the xwalk
service anymore.

Usage:
xwalkctl -d 9222 #enabled remote debugging at port '9222'
xwalkctl -d 0 #disable remote debugging

BUG=https://crosswalk-project.org/jira/browse/XWALK-2058

Explanation of code:
In "RunningApplicationsManager", add a interface "OnEnableRemoteDebugging" to receive DBus remote-call from "xwalkctl_main.cc".
The "RunningApplicationsManager::OnEnableRemoteDebugging" invokes "XWalkBrowserMainPartsTizen::EnableRemoteDebugging" finally.