I already try to use FBS.enumerateBreakpoints but I don't know how to use it. I have an error which tells that FBS is not definied. May you show me an example on how to use it, please?
Thank's. Le mercredi 2 mai 2012 14:32:40 UTC+2, Anthony Maia a écrit : > > > Thank's for the quick answer. > The button is available in the script panel. > I'll look to the link you send me now. > > Le mercredi 2 mai 2012 13:46:11 UTC+2, Jan Honza Odvarko a écrit : >> >> 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
