On May 2, 12:05 pm, Anthony Maia <[email protected]> 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. > > Anthony Maia -- 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
