Hi guys, I just wanted to thank you for the effort you're putting to make this feature come to life, this would be a great tool for all GM developpers. I would be very grateful and interested to test an early releases of the future extension.
It would be great if someone could write an article that will show the steps to flollow to "hack" FB to be able to debug GM. Thanks a lot ! On Aug 9, 4:42 pm, johnjbarton <[email protected]> wrote: > On Aug 9, 4:15 am, Olivier Cornu <[email protected]> wrote: > > > On Tue, Aug 4, 2009 at 16:49, johnjbarton<[email protected]> > > wrote: > ... > > >> Yes. And the file name seems to be needed as well, at least for the > > >> GUI: so far it shows webmonkey.js, which is the JS code creating the > > >> sandbox, not the script code running inside it. > > > > Yes, that is all the compiler knows, because that is what GM told it. > > > I take it this is happening behind the scene: i'm not aware of any GM > > code specifically providing this kind of information to the compiler. > > There is no way to give this info to the compiler. That's why we have > to do it in Firebug. > > > > > >> I guess this GM method should return the needed script's details, > > >> whatever they end up being. As far as i can see, the only reference to > > >> the running script we share between GM and FB is the Sandbox object > > >> it's running in -- that should be the method parameter. > > > > You will need the line numbers for points of concatenation, eg. a.js > > > 1-150, b.js 151-213, c.js 213-end. > > > Yes. From what i see, i guess line numbers should be taken care of in > > SandboxSourceFile... > > Yes, it has to translate the line number the user wants to see back > and forth to the ones the compiler assigns. > > > > > > You might return a sourcefile representing the webmonkey.js with a > > > single script, the outer script representing the body of the function > > > that run the sandbox global method (called outerScript in Firebug). > > > > (...) just jam the other ones on the context and return one representing > > > the outerScript. > > > To create the others you need to walk the list of innerScripts and > > > compare the source ranges (baseLineNumber, lineExtent) to the > > > webmonkey.js and your list of actual sources with their line ranges. > > > Divvy them up. > > > Alright. Haven't dealt with line numbers specifics yet but i suppose > > it'll make sense when i do. > > jjb --~--~---------~--~----~------------~-------~--~----~ 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 http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
