I am using the new MessageLoop class introduced in pepper-25 so I can run a background thread with blocking ppapi calls for File IO. Up until now I have been running chrome from visual studio with the flags --single-process
and --register-pepper-plugins
so I can debug my plugin from within visual studio.
Using these flags I found that the call to PPB_GetInterface
get_browser
for PPB_MESSAGING_INTERFACE
was returning null and after some searching I found this issue which states you must run with the flag --ppapi-out-of-process
to get MessageLoop
support.
With that flag added get_browser
does return a valid interface pointer but I can no longer debug my plugin with the visual studio ide as it cannot attach to the child process that my plugin is run from. Is there anyway to tell it to attach to my plug-in process or a way of running from a single process with support for MessageLoop
?
Thanks, James