Re: Seeing FB extension errors?

61 views
Skip to first unread message

Jan Honza Odvarko

unread,
Jul 6, 2012, 2:57:21 AM7/6/12
to Firebug


On Jul 5, 8:59 pm, Casey Boone <casey.bo...@openx.com> wrote:
> Hi guys, I'm a little new to this, so forgive my ignorance, but this should
> be an easy one for you.
>
> I wrote a little firebug extension somewhat similar to NetExport. It works
> most of the time, but then I notice that it silently stops working after a
> few uses, like it's started erroring silently. How do I see the errors that
> it's producing?
>
> It behaves similarly if I make it intentionally error (bad syntax,
> whatever), it'll just always silently fail, and I don't know how to see the
> errors. I don't see them in the Console, and I installed FBTrace and I
> don't see anything there.
Did you check DBG_ERRORS option in the FBTrace console?
Did you try Firefox Error Console?

Honza

>
> Thanks in advance.

Casey Boone

unread,
Jul 6, 2012, 11:37:11 AM7/6/12
to fir...@googlegroups.com

Hi Honza. Thanks for the feedback.
I tried DBG_ERRORS, and it's more verbose now, showing 6 errors, but they're all firebug errors, and not errors in my extension (my extension continues to work through those errors, and later, fails, still silently).
Firefox Error Console is reporting nothing as the extension fails.

Here's FBTrace's 6 new errors:
http://postimage.org/image/7eie2la4l/
http://postimage.org/image/7lbnsrjhn/

But again, they occur a little while before my extension starts failing, so it seems like they're not relevant.

I'm using firebug-1.10.0a11.xpi

Jan Honza Odvarko

unread,
Jul 6, 2012, 3:02:06 PM7/6/12
to Firebug
> Here's FBTrace's 6 new errors:http://postimage.org/image/7eie2la4l/http://postimage.org/image/7lbnsrjhn/
>
> But again, they occur a little while before my extension starts failing, so
> it seems like they're not relevant.
>
> I'm using firebug-1.10.0a11.xpi
Is your extension available online so, I can try to repro the problem
on my machine?
Honza

Casey Boone

unread,
Jul 6, 2012, 4:24:47 PM7/6/12
to fir...@googlegroups.com
I'm not sure what kind of luck you'll have with repro, since I have a kind of specific environment set up (selenium) for using it with, but you're welcome to try.

The code for the workhorse is here (for the next month):
http://pastebin.com/PNZ4adnZ
The rest of the xpi is here (until it's no longer needed): https://www.box.com/s/43b2881a1a66fd3acd85

You will need a page that causes the net panel to populate and also has an element with an id of "hopstats" (as this is the element that will be populated with the net urls).
The following HTML will display an ad (to populate the net panel) and a textarea with the appropriate id.
http://pastebin.com/Eu9SeDy6

Furthermore, you will need to have firebug open and opened to the net panel.
Ideally, the textarea should be populated with the urls from the net panel on page load.



In my selenium environment, the extension runs fine on first load, but after about 18 page reloads, it calls it quits altogether.

When I try in a normal firefox instance, it seems like the onLoad part doesn't trigger. It also adds a "Url Quality" button to the net panel to manually trigger it.

On further investigation, I realized that in the selenium environment, the manual button still works, so it looks like it's just the "on page load" part that's breaking.


Two things to note:
1) I have upgraded to firebug 1.10b3 and the problem persists
2) This definitely seems error related, and not just me using onLoad wrong (although I may be doing that as well), because when I replace line 58 with something obviously erroneous, like:
    populate,Quality(,?: f,uncti,on(,anel,, tar,et) {,},{}{}}}
I still don't see any errors.

Jan Honza Odvarko

unread,
Jul 7, 2012, 3:38:00 AM7/7/12
to Firebug


On Jul 6, 10:24 pm, Casey Boone <casey.bo...@openx.com> wrote:
> I'm not sure what kind of luck you'll have with repro, since I have a kind
> of specific environment set up (selenium) for using it with
Yeah you are right

Here is what I did:
1) I installed the extension, https://www.box.com/s/43b2881a1a66fd3acd85
2) Created a page on my local server: http://pastebin.com/Eu9SeDy6
3) Loaded the page, opened Firebug, selected the Net panel, reload
several times

Unfortunately, I don't see any errors in the FBTrace (DBG_ERRORS) and
Firefox error console.

Honza

>
> The code for the workhorse is here (for the next month):http://pastebin.com/PNZ4adnZ
> The rest of the xpi is here (until it's no longer needed):https://www.box.com/s/43b2881a1a66fd3acd85
>
> You will need a page that causes the net panel to populate and also has an
> element with an id of "hopstats" (as this is the element that will be
> populated with the net urls).
> The following HTML will display an ad (to populate the net panel) and a
> textarea with the appropriate id.http://pastebin.com/Eu9SeDy6
> >http://postimage.org/image/7eie2la4l/http://postimage.org/image/7lbns...

Casey Boone

unread,
Jul 7, 2012, 2:19:31 PM7/7/12
to fir...@googlegroups.com
Like I said, I don't see any errors either. That's exactly the problem.
You're reproducing the problem if:
1) You don't see any errors, however:
2) An ad shows up, and
3) The textarea is not populated, it remains either "Empty" or "".

The intended behavior is for the textarea to be populated with the contents of the net panel. If it is not, it means a problem occurred, and I need to find out what the problem is. I figured the best place to start would be to see any errors, but I can't see any errors, even if I intentionally try to make the plugin error.

Casey Boone

unread,
Jul 16, 2012, 12:38:08 PM7/16/12
to fir...@googlegroups.com
Could I at least ask if the way I'm doing on-page-load is non-standard, and if there's a more standard way to do it? I just copied that code from NetExport.

For those just tuning in, the code I'm using is here: http://pastebin.com/PNZ4adnZ
And the problem is that after several page loads, the onPageLoad breaks and stops triggering, apparently without throwing any errors.
Reply all
Reply to author
Forward
0 new messages