Hi All,
I have been pretty busy these last days, that's why I did not answer
you.
John said: *Using an external editor I guess.
If I can't use FireBug to do what I want, I will need to find the
cache files and edit them by myself.
I figured out that I can get the cache location by entering
about:cache as a URL.
I don't know exactly how FF orgonizes its cache files, but I found a
JS file from my page, modified it. But my modifications have taken
effects only after a reload ;-(
John said: * Ok, so what magic tells Firefox to use the new code?
That's a good question. I wonder if there a way to ask FF to update
its reference to a JS. FireBug is able to do the same trick but for
HTML, so it should be possible for JS!
John said: *I have been working on a solution using a socket
connection to drive Firebug to recompile the JS.
Does this project have been stoped? Did it work?
John said: *Are you ok with the reality that global operations in the
separated JS file will run every time you edit? I don't know if this
can be prevented.
I am ok with that.
Julien Wajsberg said: *I guess it is what he would like to do with
Firebug ;)
Now I know how to edit a JS file in the FF cache. But I miss the
update in live feature!
splintor: that's an interesting proposition. I will try.
John said: I'm curious: why not reload?
Well, the application I am working on has about 10k JS lines. A bunch
of stuff is done on the client side as you can guess! In some cases,
it is a real pain to debug because I don't have the feature we are
talking about. In some cases, the application needs to process some
data during about 20 seconds, then it is in the state I want to debug.
If I need to reload, I need to wait 20 seconds again.
I will try slintor's advices and have a look at FireBug code to see
how the HTML update is done.
Regards,
Matthias