RESOLVED FIXED 99297
[EFL] should make plugin process debugging easier (PLUGIN_PROCESS_COMMAND_PREFIX)
https://bugs.webkit.org/show_bug.cgi?id=99297
Summary [EFL] should make plugin process debugging easier (PLUGIN_PROCESS_COMMAND_PRE...
Jussi Kukkonen (jku)
Reported 2012-10-15 01:09:03 PDT
I'd like to add support for PLUGIN_PROCESS_CMD_PREFIX environment variable to make debugging easier (on a debug build). Then you could do PLUGIN_PROCESS_CMD_PREFIX="xterm gdb --args" MiniBrowser url/to/something/with/plugins and end up debugging the right process without tracking forks and all that. This would be similar to WEB_PROCESS_CMD_PREFIX implemented by a couple of ports (which we should maybe move to non-port specific files as well, but that's another bug).
Attachments
Patch (1.52 KB, patch)
2012-10-15 02:12 PDT, Jussi Kukkonen (jku)
no flags
Patch (1.91 KB, patch)
2012-10-17 06:05 PDT, Jussi Kukkonen (jku)
no flags
Patch (2.02 KB, patch)
2012-10-23 02:45 PDT, Jussi Kukkonen (jku)
no flags
Jussi Kukkonen (jku)
Comment 1 2012-10-15 02:12:50 PDT
Alexey Proskuryakov
Comment 2 2012-10-15 10:20:08 PDT
A nitpick: please don't abbreviate "command". Looks reasonable to me, Anders or Sam should review.
Sam Weinig
Comment 3 2012-10-15 16:00:22 PDT
Comment on attachment 168653 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=168653&action=review > Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp:82 > + const char* cmdPrefix = getenv("PLUGIN_PROCESS_CMD_PREFIX"); > + if (cmdPrefix && *cmdPrefix) > + launchOptions.processCmdPrefix = String::fromUTF8(cmdPrefix); > +#endif Won't this break non-EFL builds since they don't have the launchOptions.processCmdPrefix member. I would prefer if you clean this up by adding platformInitializeLaunchOptions() that is implemented separately.
Jussi Kukkonen (jku)
Comment 4 2012-10-16 02:07:40 PDT
(In reply to comment #2) > A nitpick: please don't abbreviate "command". I was trying to be in line with WEB_PROCESS_CMD_PREFIX, but the code variable name I can of course change. (In reply to comment #3) > Won't this break non-EFL builds since they don't have the launchOptions.processCmdPrefix member. I would prefer if you clean this up by adding platformInitializeLaunchOptions() that is implemented separately. Oops, you are correct, managed to misread ProcessLauncher.h. I'll add a platformInitializeLaunchOptions first, thanks.
Alexey Proskuryakov
Comment 5 2012-10-16 08:35:41 PDT
> I was trying to be in line with WEB_PROCESS_CMD_PREFIX, but the code variable name I can of course change. That one also looks like it should be renamed, of course. > Oops, you are correct, managed to misread ProcessLauncher.h. I'll add a platformInitializeLaunchOptions first, thanks. Why are EWS bots all green then?
Jussi Kukkonen (jku)
Comment 6 2012-10-17 04:35:31 PDT
(In reply to comment #5) > > Oops, you are correct, managed to misread ProcessLauncher.h. I'll add a platformInitializeLaunchOptions first, thanks. > > Why are EWS bots all green then? I assumed the EWS bots build Release, so the ifdef would be skipped. Admitedly I don't actually know if this is true...
Jussi Kukkonen (jku)
Comment 7 2012-10-17 06:05:42 PDT
Jussi Kukkonen (jku)
Comment 8 2012-10-17 06:10:28 PDT
(In reply to comment #3) > I would prefer if you clean this up by adding platformInitializeLaunchOptions() that is implemented separately. I hope this patch on top of the on in bug 99583 is what you were thinking of. This patch still includes the "#if PLATFORM(EFL)" inside PluginProcessProxyUnix.cpp -- I have a feeling GTK would also like this feature but that should probably happen in another bug because that would mean changing the ProcessLauncher header and presumably WebProcessProxyGtk as well.
Alexey Proskuryakov
Comment 9 2012-10-17 08:41:46 PDT
> I assumed the EWS bots build Release, so the ifdef would be skipped. Indeed.
Jussi Kukkonen (jku)
Comment 10 2012-10-23 02:45:04 PDT
WebKit Review Bot
Comment 11 2012-10-23 05:33:14 PDT
Comment on attachment 170097 [details] Patch Clearing flags on attachment: 170097 Committed r132209: <http://trac.webkit.org/changeset/132209>
WebKit Review Bot
Comment 12 2012-10-23 05:33:20 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.