Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion New extension for firebug.

Received: by 10.52.21.68 with SMTP id t4mr36257506vde.8.1335959176656;
        Wed, 02 May 2012 04:46:16 -0700 (PDT)
X-BeenThere: firebug@googlegroups.com
Received: by 10.52.109.106 with SMTP id hr10ls260378vdb.0.gmail; Wed, 02 May
 2012 04:46:11 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.97.101 with SMTP id dz5mr819852vdb.3.1335959171744; Wed, 02
 May 2012 04:46:11 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 odva...@gmail.com designates internal as permitted sender)
 smtp.mail=odva...@gmail.com; dkim=pass
 header...@gmail.com
Received: by w7g2000vbg.googlegroups.com with HTTP; Wed, 2 May 2012 04:46:11
 -0700 (PDT)
Date: Wed, 2 May 2012 04:46:11 -0700 (PDT)
In-Reply-To: <26675834.750.1335953131631.JavaMail.geo-discussion-forums@vbfx1>
References: <26675834.750.1335953131631.JavaMail.geo-discussion-forums@vbfx1>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20100101 Firefox/11.0,gzip(gfe)
Message-ID: <61ef9f21-6759-4c50-a6c8-53ced5c90027@w7g2000vbg.googlegroups.com>
Subject: Re: New extension for firebug.
From: Jan Honza Odvarko <odva...@gmail.com>
To: Firebug <firebug@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On May 2, 12:05=A0pm, Anthony Maia <anthony.mai...@gmail.com> wrote:
> Hi,
>
> I'm a searcher student working on workarounds. I want to add a button to
> firebug which retrieve a few line around a breakpoint.
> Then expose some possible workarounds to the developer.
Where exactly the button should be available?

> I take the extension consoleexport as exemple.
>
> But here is my problem. How to know the line of a breakpoint?
Check the "breakpoints" panel to see how to get a list of breakpoints.
https://github.com/firebug/firebug/blob/master/extension/content/firebug/js=
/breakpoint.js#L347

The logic is based on FBS.enumerateBreakpoints, which also provides
url and line for a breakpoint

This line shows how to get the source line for the breakpoint:
https://github.com/firebug/firebug/blob/master/extension/content/firebug/js=
/breakpoint.js#L479

You can use the same to get surrounding lines...

HTH

Honza

>
> Thank's!
>
> Regards.
>