For what release does this work? I have several files that I "import"
dynamically via XHR and eval(). I put the comment at the end of one of
them, but the name didn't "take" in the Script tab "files" menu (using
FB 1.4.2 on FF 3.0.13). Or am I completely misunderstanding this feature?
>
> On Aug 11, 10:49 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:
>> http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sour...
>> guess the URL got chopped.
>>
>> On Aug 11, 10:46 pm, John J Barton <johnjbar...@johnjbarton.com>
>> wrote:
>>
>>> Ok Steve here is a start...http://blog.getfirebug.com/2009/08/11/give-your-eval…with-sourceurl/
>>> jjb
--
Don Dwiggins
Advanced Publishing Technology
Yes.
>
> Here is an online example of the feature:
> http://getfirebug.com/tests/script/CallDynLoadedFunction.html
And it works for me. A few difference I note from what I tried:
- The URL in the example is
res:/FireclipseTests/WebContent/payloadCatsAndDucks.js; I just used a
filename (which seems to match the regexp in the blog entry.)
- In the example, the sourceURL line occurs both at the top (2nd line)
and bottom of the file. I have it only at the bottom.
- My file has the extension .tpl (a Zend Framework template file) rather
than .js.
- I don't know if it's related, but in loading my file, only the first
line shows in the Script tab, although all lines show in the Response
tab of the request in Console and Net. I'd seen that occasionally in FB
1.3, but not in the few days after I upgraded to 1.4.2 -- until now.
- My file is loaded after a sequence of page loads and interactions.
On further investigation, it does work as expected. An error of mine
was masking it. Nice to have, thanks!