If you have so many files you might want to consider something like Eclipse; if you do Ctrl + Shift + R a box pops up allowing you to type the name of a file and allows you to select that file. Usually a few characters is all you need and it will have cut down the list to the one you where looking for.
On Mon, Feb 9, 2009 at 3:13 PM, LynnR <[email protected]> wrote: > > I'm not asking or expecting Firebug to implement anything like this > for me on a silver platter. I plan to write my own script or program > to post-process the file name, find the specific file in my source > tree, open it in my IDE, and go to the given line number, assuming > that is a parameter. I'm only asking what are the arguments passed by > Firebug to the 'Open With Editor' command and hoping that it includes > the line number so I can pass it to my script. I do use an IDE (a > rather simple one) but I don't always have all the files open (there > are hundreds). Instead of searching in the 'open file' menus or in > windows explorer to find the file and going to the line manually, I'd > like to have Firebug pass the filename and line number to my script. > Firebug doesn't have to figure out the whole file path (it does not > have this information), my own script can parse out the final part of > the filename and post-process this to find the file in my source > tree. Ninety-nine percent of the (hundreds) of files in my project > are unique in the leaf name, so if I know the last part is 'foo.js', > my script can find it in one of my source directories. > > So, can anyone tell me if the line number is passed by Firebug? > > > On Feb 7, 6:09 am, Brian Di Palma <[email protected]> wrote: > > I develop a web app and I have never needed or wanted the 'Open with > Editor' > > option or what you are asking for. > > Surely you have all these files open and part of your project in Eclipse, > > Netbeans or whichever IDE you may be using? > > > > If you want Firebug to open the file where it is locally on your machine > > inside your dev environment I think you are asking for something that > > Firebug can't do as the files Firebug is parsing are being served from a > web > > app server and not your local file system Firebug and Firefox can't tell > the > > web server is actually getting files from the local file system. > > > > > > > > On Thu, Feb 5, 2009 at 3:44 PM, LynnR <[email protected]> wrote: > > > > > Thank you for the wonderful Firebug tool. > > > > > I have a question about how to use 'Open Editor' to debug javascript > > > in the 'Script' tab. I've configured Firebug to open my favorite > > > text editor via the 'Open Editor' menu (View->Open With Editor- > > > >Configured Editors') but now I need to figure out how to pass the > > > line number to my editor. There's a field in the configuration dialog > > > for launch arguments but I don't know how to set these in conjunction > > > with whatever arguments Firebug can pass. Let's say my editor > > > expects to be invoked as: myeditor.exe -n linenumber filename, is > > > there a way configure the launch arguments to do this, i.e. are there > > > placeholders for filename and line number perhaps? What arguments > > > does Firebug pass to the editor and in what order? If Firebug passes > > > 'filepath linenumber', I could configure it to invoke a script that > > > expects the line number as the second parameter and then calls my > > > favorite editor using its expected argument syntax. Hopefully Firebug > > > will invoke a .bat file and not just an .exe file (haven't tried this > > > yet)? I need to do this anyway since I need to post-process the > > > file name of the javascript file and change the path to not be in > > > \temp (my Javascript files are not local, they are served by a servlet > > > so right now when I 'open with editor' it gives me a copy of the file > > > in C:\temp). Today, after debugging a problem in Firebug, I have to > > > manually find and open the specific JavaScript file in my source code > > > control tree view and manually go to the specific line when I want to > > > make and save a fix, and it would be very nice to streamline these > > > steps. I know I'd still need to reload the page or perhaps restart > > > Firefox after saving the fix but I always do that anyway. > > > > > In short, I'd like to know what arguments Firebug is passing to the > > > editor when you 'Open With Editor'. I really hope it includes the > > > line number. It would be nice if the 'Open With Editor' option were > > > included in the context menu if you right click on a line of code in > > > the Script panel. (BTW, I'm using Firefox 2, out of necessity on my > > > project, and Firebug 1.2.1). This quick and easy 'go to line X in my > > > source file' feature would help anyone like me who is developing and > > > debugging a web app (as opposed to local JS files), and needs to be > > > able to quickly edit the source wherever it may be and using the > > > user's favorite IDE. > > > > > If anyone can help, please post to this forum since I don't check the > > > Google email account frequently. > > > > > Thanks in advance!- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
