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.

On Saturday, July 7, 2012 2:19:31 PM UTC-4, Casey Boone wrote:
>
> 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.
>
>
>
>
> On Saturday, July 7, 2012 3:38:00 AM UTC-4, Jan Honza Odvarko wrote:
>>
>>
>>
>> On Jul 6, 10:24 pm, Casey Boone <[email protected]> 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 
>> > 
>> > 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. 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > On Friday, July 6, 2012 3:02:06 PM UTC-4, Jan Honza Odvarko wrote: 
>> > 
>> > > On Jul 6, 5:37 pm, Casey Boone <[email protected]> wrote: 
>> > > > On Friday, July 6, 2012 2:57:21 AM UTC-4, Jan Honza Odvarko wrote: 
>> > 
>> > > > > On Jul 5, 8:59 pm, Casey Boone <[email protected]> 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. 
>> > 
>> > > > 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/7lbns... 
>>
>> > 
>> > > > 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
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" 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
https://groups.google.com/forum/#!forum/firebug

Reply via email to