Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?
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
  14 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
 
Patrick Stinson  
View profile  
 More options Mar 15 2012, 1:36 pm
From: Patrick Stinson <patr...@res3d.com>
Date: Thu, 15 Mar 2012 10:36:36 -0700 (PDT)
Local: Thurs, Mar 15 2012 1:36 pm
Subject: Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?
I'm adding scripts on demand using jQuery.append('<script
src="something.js"></script>'). Is there some way to get these to show
up in the scripts list in dev tools so I can set a breakpoint and
debug the code? Right now I have to add a "debugger" statement to load
the script source into dev tools debugger.

 
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.
Vsevolod Vlasov  
View profile  
 More options Mar 15 2012, 2:56 pm
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Thu, 15 Mar 2012 22:56:50 +0400
Local: Thurs, Mar 15 2012 2:56 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

After evaluating the line below in console on some random site I can see
test.js appearing in the scripts panel script list.

a = $('body').append("<script src='http://localhost/test.js'></script>");

Could you please describe scenario that reproduces your problem in more
details (preferably providing some test url).

Thank you,
Vsevolod


 
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.
Patrick Stinson  
View profile  
 More options Mar 15 2012, 3:17 pm
From: Patrick Stinson <patr...@res3d.com>
Date: Thu, 15 Mar 2012 11:17:01 -0800
Local: Thurs, Mar 15 2012 3:17 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

http://www.res3d.com/bugs/append_script/append_script.html

Patrick Stinson
Director of Software Development

Resolution3D
T: 907-644-6258
C: 907-350-2370
www.res3d.com

On Mar 15, 2012, at 10:56 AM, Vsevolod Vlasov 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.
Patrick Stinson  
View profile  
 More options Mar 15 2012, 3:34 pm
From: Patrick Stinson <patrickk...@gmail.com>
Date: Thu, 15 Mar 2012 11:34:42 -0800
Local: Thurs, Mar 15 2012 3:34 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

I am using Chrome stable (non-canary).

On Mar 15, 2012, at 11:17 AM, Patrick Stinson 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.
Vsevolod Vlasov  
View profile  
 More options Mar 15 2012, 4:08 pm
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Fri, 16 Mar 2012 00:08:46 +0400
Local: Thurs, Mar 15 2012 4:08 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Thank you, I can reproduce it now.
I'll take a look at it.


 
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.
Vsevolod Vlasov  
View profile  
 More options Mar 16 2012, 5:33 am
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Fri, 16 Mar 2012 13:33:35 +0400
Local: Fri, Mar 16 2012 5:33 am
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Apparently jquery does not simply add your code to DOM, it manipulates it
in some way, particularly it uses some smart mechanism to load scripts.
See for some details
http://stackoverflow.com/questions/610995/jquery-cant-append-script-e....

In your case the script is loaded by XHR (as can be seen in the network
panel).
I suggest you try adding sourceURL (
http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sour...)
to your script to see if it helps.

Thank you,
Vsevolod

On Fri, Mar 16, 2012 at 12:08 AM, Vsevolod Vlasov <vse...@chromium.org>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.
Patrick Stinson  
View profile  
 More options Mar 16 2012, 5:18 pm
From: Patrick Stinson <patr...@res3d.com>
Date: Fri, 16 Mar 2012 13:18:11 -0800
Local: Fri, Mar 16 2012 5:18 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Thanks, that fixed it!

On Mar 16, 2012, at 1:33 AM, Vsevolod Vlasov <vse...@chromium.org> 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.
orntha...@gmail.com  
View profile  
 More options Aug 28 2012, 9:20 am
From: orntha...@gmail.com
Date: Tue, 28 Aug 2012 06:20:16 -0700 (PDT)
Local: Tues, Aug 28 2012 9:20 am
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

That didn't work for me.
My script still doesn't show up in the dev tools... and was loaded the same
way (with jquery .append()) :/


 
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.
Vsevolod Vlasov  
View profile  
 More options Aug 28 2012, 9:30 am
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Tue, 28 Aug 2012 17:30:06 +0400
Local: Tues, Aug 28 2012 9:30 am
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Could you please provide an example url / code snippet?


 
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.
Ornthalas  
View profile  
 More options Aug 28 2012, 10:31 am
From: Ornthalas <orntha...@gmail.com>
Date: Tue, 28 Aug 2012 16:31:04 +0200
Local: Tues, Aug 28 2012 10:31 am
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Ok, sorry, that was ambiguous.

My script doesn't show up in the Chrome dev tools.
Obviously, the way jquery loads it is not suitable for now to be debugged
inside the dev tools.

The workaround proposed in Firebug for Firefox doesn't work either for me.
There's an improvement compared to Chrome: I can see my script in Firebug,
but only evaluated, inlined and though, not usable for debugging...

I hope that one day the Chrome dev tools will be updated to fix that
issue...

--
Etienne Folio (Ornthalas)
(+33) 6 27 58 39 14
http://www.ornthalas.net/


 
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.
Vsevolod Vlasov  
View profile  
 More options Aug 28 2012, 10:43 am
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Tue, 28 Aug 2012 18:42:59 +0400
Local: Tues, Aug 28 2012 10:42 am
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

I was probably ambiguous as well.

If you add sourceURL to your script before appending it by jquery it should
appear in Chrome Develper Tools and you should be able to debug it.
If you experience any problems with this approach I would like to know more
details, like the code snippet you are using or the example url where it
doesn't work for you.

Thank you


 
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.
Ornthalas  
View profile  
 More options Aug 28 2012, 12:00 pm
From: Ornthalas <orntha...@gmail.com>
Date: Tue, 28 Aug 2012 18:00:07 +0200
Local: Tues, Aug 28 2012 12:00 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

OK, now I get it:
This feature seems to work only on the dev branch of Chrome.
After updating, it works fine :)

Thanks a lot,

--
Etienne Folio (Ornthalas)
(+33) 6 27 58 39 14
http://www.ornthalas.net/


 
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.
Vsevolod Vlasov  
View profile  
 More options Aug 28 2012, 12:55 pm
From: Vsevolod Vlasov <vse...@chromium.org>
Date: Tue, 28 Aug 2012 20:54:39 +0400
Local: Tues, Aug 28 2012 12:54 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

You should actually have it in the stable as well. Which version are you
(were you) using?


 
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.
Ornthalas  
View profile  
 More options Aug 28 2012, 12:58 pm
From: Ornthalas <orntha...@gmail.com>
Date: Tue, 28 Aug 2012 18:58:22 +0200
Local: Tues, Aug 28 2012 12:58 pm
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

The latest I believe... I have no way to find out anymore ... :-(
Le 28 août 2012 18:55, "Vsevolod Vlasov" <vse...@chromium.org> a écrit :


 
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 »