Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Give your eval a name with //@ sourceURL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John J Barton  
View profile  
 More options Aug 12 2009, 1:46 am
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Tue, 11 Aug 2009 22:46:47 -0700 (PDT)
Local: Wed, Aug 12 2009 1:46 am
Subject: Give your eval a name with //@ sourceURL
Ok Steve here is a start...
http://blog.getfirebug.com/2009/08/11/give-your-eval…with-sourceurl/

jjb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
johnjbarton  
View profile  
 More options Aug 12 2009, 1:49 am
From: johnjbarton <johnjbar...@johnjbarton.com>
Date: Tue, 11 Aug 2009 22:49:09 -0700 (PDT)
Local: Wed, Aug 12 2009 1:49 am
Subject: Re: Give your eval a name with //@ sourceURL
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Roussey  
View profile  
 More options Aug 12 2009, 10:47 pm
From: Steven Roussey <srous...@gmail.com>
Date: Wed, 12 Aug 2009 19:47:44 -0700 (PDT)
Local: Wed, Aug 12 2009 10:47 pm
Subject: Re: Give your eval a name with //@ sourceURL
Ah, that's awesome! I'll have to actually use it now that I know how
to...

On Aug 11, 10:49 pm, johnjbarton <johnjbar...@johnjbarton.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ptw  
View profile  
 More options Aug 13 2009, 8:20 am
From: ptw <ptwi...@gmail.com>
Date: Thu, 13 Aug 2009 05:20:00 -0700 (PDT)
Subject: Re: Give your eval a name with //@ sourceURL
Would be really cool if this worked in straight .js files too, for
people who 'compile' to javascript, the way #file and #line directives
work for C as an assembly language.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Dwiggins  
View profile  
 More options Aug 13 2009, 12:25 pm
From: Don Dwiggins <ddwigg...@advpubtech.com>
Date: Thu, 13 Aug 2009 09:25:13 -0700
Local: Thurs, Aug 13 2009 12:25 pm
Subject: Re: Give your eval a name with //@ sourceURL

Steven Roussey wrote:
> Ah, that's awesome! I'll have to actually use it now that I know how
> to...

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
johnjbarton  
View profile  
 More options Aug 13 2009, 12:43 pm
From: johnjbarton <johnjbar...@johnjbarton.com>
Date: Thu, 13 Aug 2009 09:43:30 -0700 (PDT)
Local: Thurs, Aug 13 2009 12:43 pm
Subject: Re: Give your eval a name with //@ sourceURL

On Aug 13, 9:25 am, Don Dwiggins <ddwigg...@advpubtech.com> wrote:

> Steven Roussey wrote:
> > Ah, that's awesome! I'll have to actually use it now that I know how
> > to...

> For what release does this work?  I have several files that I "import"

This has been in since maybe Firebug 1.2.

> 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?

Do you see the scripts as evals instead?

Here is an online example of the feature:
http://getfirebug.com/tests/script/CallDynLoadedFunction.html

jjb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Dwiggins  
View profile  
 More options Aug 14 2009, 1:36 pm
From: Don Dwiggins <ddwigg...@advpubtech.com>
Date: Fri, 14 Aug 2009 10:36:07 -0700
Local: Fri, Aug 14 2009 1:36 pm
Subject: Re: Give your eval a name with //@ sourceURL

johnjbarton wrote:
>> 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?

> Do you see the scripts as evals instead?

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.

--
Don Dwiggins
Advanced Publishing Technology


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
johnjbarton  
View profile  
 More options Aug 14 2009, 1:57 pm
From: johnjbarton <johnjbar...@johnjbarton.com>
Date: Fri, 14 Aug 2009 10:57:19 -0700 (PDT)
Local: Fri, Aug 14 2009 1:57 pm
Subject: Re: Give your eval a name with //@ sourceURL
Seems to me your case ought to work. You can either post a test case
to the issues list:
http://code.google.com/p/fbug/issues/list

Or you can install the tracing version of 1.4X.2 by following the
instructions:
http://groups.google.com/group/firebug/web/faq-about-firebug

If you trace with option SOURCEFILES we can see what happens to the
URL.

jjb

On Aug 14, 10:36 am, Don Dwiggins <ddwigg...@advpubtech.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Dwiggins  
View profile  
 More options Aug 14 2009, 6:46 pm
From: Don Dwiggins <ddwigg...@advpubtech.com>
Date: Fri, 14 Aug 2009 15:46:01 -0700
Local: Fri, Aug 14 2009 6:46 pm
Subject: Re: Give your eval a name with //@ sourceURL

johnjbarton wrote:
> Seems to me your case ought to work. You can either post a test case
> to the issues list:
> http://code.google.com/p/fbug/issues/list

On further investigation, it does work as expected.  An error of mine
was masking it.  Nice to have, thanks!

--
Don Dwiggins
Advanced Publishing Technology


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jerone  
View profile  
 More options Aug 15 2009, 7:16 am
From: jerone <jeron...@gmail.com>
Date: Sat, 15 Aug 2009 04:16:26 -0700 (PDT)
Local: Sat, Aug 15 2009 7:16 am
Subject: Re: Give your eval a name with //@ sourceURL
And now with support for tabs:

const reURIinComment = /\/\/@[\s\t]*sourceURL[\s\t]*=[\s\t]*(\S*?)[\s
\t]*$/m;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
johnjbarton  
View profile  
 More options Aug 15 2009, 11:12 am
From: johnjbarton <johnjbar...@johnjbarton.com>
Date: Sat, 15 Aug 2009 08:12:55 -0700 (PDT)
Local: Sat, Aug 15 2009 11:12 am
Subject: Re: Give your eval a name with //@ sourceURL
? Aren't tabs whitespace?
jjb

On Aug 15, 4:16 am, jerone <jeron...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »