Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trying to debug npapi plugin in Chrome and Firefox , without success what is the right way?

i build working npapi pluging using firebreath framework , and its working just fine.
i compiled in debug mode . did regsvr32 myddl.dll and restart the Chrome browser.
now in visual studio 2008 express and did attached to process attached to Chrome process
but when i try to set breakpoint in the dll source code it gives me the error:

The breakpoint will not currently be hit. No symbols have been loaded for this document.

why this is the source of the plugin and its in debug mode .
this is also happen when i try with firefox browser , so i guess its something with my visual studio configuration

like image 455
user63898 Avatar asked May 17 '11 07:05

user63898


1 Answers

Chrome (and also Firefox) runs plugins out of process, so you aren't actually attaching to the process that has your plugin code. Run Chrome with the --plugin-startup-dialog flag, and when your plugin process starts Chrome will give you the process ID of the plugin process and then pause the plugin process and wait for a debugger to attach.

like image 188
smorgan Avatar answered Nov 14 '22 21:11

smorgan