jjb
I created a new profile and put in files that link to the current svn
of firebug 1.6, chromebug 1.5, and fbtest 1.6. However, chromebug does
not work for me. It always gives me the first time "help" screen, even
if I tell it not to, and it lists no contexts. Not sure where to start
to figure this one out.
-steve--
Yep, something is broken on SVN.
jjb
Fixed at F5704, I'll have to talk to Honza about an alternative to R5702.
jjb
Great!
I am having a problem with dialog debugging - this existed in prior
ChromeBug builds too.
Scenario:
I breakpoint on this line in browser.xul for my extension:
window.openDialog('chrome://myApp/content/myAppLogin.xul', 'login',
'chrome,dialog,modal,resizable,centerscreen', gBrowser, retVals);
No problem so far - I hit the breakpoint and Chromebug is active.
Then if I try to "step into", I do not hit a breakpoint in the OnLoad
function in my dialog - the dialog is displayed without a breakpoint.
It would be nice if there was some easy way to "step into" a dialog.
Is that possible?
At this point my modal dialog is displayed.
I then switch back to the ChromeBug window and navigate to the XUL
for my dialog - e.g. myAppLogin.xul
I set a breakpoint on a function I know is getting invoked when I
interact with the dialog - e.g..
function modifyText(e){ alert('keypress'); .... }
Chromebug does not breakpoint at the line, even though the breakpoint
red icon is shown for the source line.
Any tips / ideas how I can debug inside a XUL dialog? I get the same
issues if I make my dialog non-modal, too.
Thanks, Leslie
I just noticed that I was running Firebug 1.5 during my testing. I
downloaded firebug-1.6X.0a3, and it wont install on Firefox 3..5.7. So
I updated to Firefox 3.6 RC, installed Firebug 1.6X.0a3, and still
have the same issue.
Yes it should be possible. But I can't guess on how to fix these kinds
of problems because there is no documentation or information on what
happens to the js/platform runtime when you issue window.openDialog().
So the only way I can even look into this is if I have a simple
extension example that demos the problem. I'll run it in Chromebug and
look at what happens then cook up a fix.
jjb
When I created a new profile Chromebug failed to start until I added
Firebug into the profile. The FF window opens, but not ChromeBug.
Not surprising!
John, can you add logic into Chromebug to detect whether the FF
profile being launched includes FireBug?
This was in the error console, in case it is relevant:
Error: Cc['@joehewitt.com/firebug-trace-service;1'] is undefined
Source File:
file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug-startup-observer.js
Line: 31
Error: Failed to process command line because of: [Exception...
"Component returned failure code: 0x80570016
(NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult:
"0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS
frame ::
file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug_command_line.js
:: getStartupObserver :: line 201" data: no]
Source File:
file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug_command_line.js
Line: 161
Also, when I start my Firefox without the --chromebug command line
option, I keep getting this warning (marked as an error, though) - no
matter how many times I restart FF 3.6.
Error: FYI: Chromebug started jsd engine; run twice without -chromebug
to disable
Source File:
file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/oqhggzjv.development/extensions/chro...@johnjbarton.com/components/chromebug-startup-observer.js
Line: 65
Ok I added a bold line to the introduction panel, changed the title bar
of the Chromebug window when the versions are not compatible, and force
up the introduction. I did not test the no-Firebug case.
>
> This was in the error console, in case it is relevant:
>
> Error: Cc['@joehewitt.com/firebug-trace-service;1'] is undefined
> Source File:
> file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug-startup-observer.js
> Line: 31
>
> Error: Failed to process command line because of: [Exception...
> "Component returned failure code: 0x80570016
> (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult:
> "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS
> frame ::
> file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug_command_line.js
> :: getStartupObserver :: line 201" data: no]
> Source File:
> file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/zr972o9g.BetaSSO/extensions/chro...@johnjbarton.com/components/chromebug_command_line.js
> Line: 161
>
> Also, when I start my Firefox without the --chromebug command line
> option, I keep getting this warning (marked as an error, though) - no
> matter how many times I restart FF 3.6.
>
> Error: FYI: Chromebug started jsd engine; run twice without -chromebug
> to disable
> Source File:
> file:///C:/Users/Leslie/AppData/Roaming/Mozilla/Firefox/Profiles/oqhggzjv.development/extensions/chro...@johnjbarton.com/components/chromebug-startup-observer.js
> Line: 65
Ok I changed the message to
Error: FYI: Chromebug started jsd engine; JIT will be disabled
I don't know how to make it a warning. The disable part is too hard for now.
Thanks,
jjb
Hi John,
Via email I sent you an example of a extension that launches a XUL
dialog. I'm not sure what the protocol is for including code on a
usenet group. Should I post it here, too - for others to see?
Great!