Thanks for the tips!  Though I can attach a debugger using either
technique, they still don't do the trick.

I am debugging crashes that happens during initialization, as the
browser action is popping up. When running in a tab, I cannot
reproduce the crash.

I can attach the debugger using DebugBreak early in initialization,
and I still get my first pop-up -- it completes initialization and
rendering and regains focus. Yay. However...

One 100% reproducible crash happens if my browser action is popped up
in one window, and then I click my browser action icon in a second
chrome window. During that transition, as the second BA pops up and
the first BA disappears, my extension crashes.

DebugBreak generates exceptions early during initialization, and I can
attach the debugger for each occurrence. And my crash still happens.
But then all debuggers automatically detach and I get no stack trace
and I am let scratching my head.

Michael

On Nov 16, 2:18 pm, Aaron Boodman <[email protected]> wrote:
> Yeah, this is really tricky. We have a bug open on this that I am keen to fix.
>
> Have you tried running the popup code in a tab temporarily, just while
> you debug it? You can navigate a tab to, eg,
> chrome-extension://<id>/popup.html, and it is basically the same as
> running it in the popup, just uglier.
>
> - a
>
> On Mon, Nov 16, 2009 at 12:54 PM, Michael Weber
>
>
>
> <[email protected]> wrote:
> > My extension uses an NPAPI plugin and I need to debug my C++ code in
> > the context of a browser action.
>
> > Of course, clicking anywhere outside the browser action causes it to
> > close, along with the chrome instance that is hosting my DLL. At
> > least, I assume a transient instance of chrome hosts my dll. I see
> > additional chrome instances spawn when I open my browser action. But,
> > it is impossible to check which DLLs are loaded using any tool, since
> > the moment you go to use another tool, you implicitly dismiss the
> > browser action.
>
> > Unless I am missing some obvious way to attach a debugger to my NPAPI
> > code, I desperately need a way to make the browser action stay open,
> > even when it loses input focus, so I can debug my darned code.
>
> > thx!
> > Michael
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Chromium-extensions" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/chromium-extensions?hl=.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=.


Reply via email to