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
Message from discussion Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?

Received: by 10.68.135.231 with SMTP id pv7mr2913621pbb.8.1331840092070;
        Thu, 15 Mar 2012 12:34:52 -0700 (PDT)
X-BeenThere: google-chrome-developer-tools@googlegroups.com
Received: by 10.68.130.226 with SMTP id oh2ls9308762pbb.0.gmail; Thu, 15 Mar
 2012 12:34:51 -0700 (PDT)
Received: by 10.68.129.169 with SMTP id nx9mr2948627pbb.2.1331840091751;
        Thu, 15 Mar 2012 12:34:51 -0700 (PDT)
Received: by 10.68.129.169 with SMTP id nx9mr2948626pbb.2.1331840091701;
        Thu, 15 Mar 2012 12:34:51 -0700 (PDT)
Return-Path: <patrickk...@gmail.com>
Received: from mail-pz0-f49.google.com (mail-pz0-f49.google.com [209.85.210.49])
        by gmr-mx.google.com with ESMTPS id 6si3449934pbg.2.2012.03.15.12.34.51
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 15 Mar 2012 12:34:51 -0700 (PDT)
Received-SPF: pass (google.com: domain of patrickk...@gmail.com designates 209.85.210.49 as permitted sender) client-ip=209.85.210.49;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of patrickk...@gmail.com designates 209.85.210.49 as permitted sender) smtp.mail=patrickk...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-pz0-f49.google.com with SMTP id p5so5220065dak.8
        for <google-chrome-developer-tools@googlegroups.com>; Thu, 15 Mar 2012 12:34:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=subject:mime-version:content-type:from:in-reply-to:date:cc
         :message-id:references:to:x-mailer;
        bh=hx2f5yqUSphbV5CSA61NmQochvR/hGOoz5Ioe9ICgvQ=;
        b=cHhtbKXHTRGYIcJhuXE2UzxpeOFvPuDxFkDn42uDl9UkOib8AJmtuQXkBD/dQTCj1r
         cKN7HB3X4rtqQe0S5CWAq3GeuXoT0n96zuSrX3LDkEChFuTuYiUbkyYhKKfy1ug2SsjI
         TLmll3Is7eQ0Bos6vpC2Whnn96uuAN7qc3ut4vDvZAiBwr7DRcJBaxrRSTUsL+GlZbSj
         ckwsgYodZ5g2qQAxqFg3hZwT87z4EwEEt+BCj5z4v2ucuFHbYgpNocAszhiyHPMNUjuv
         Yqyac1HsPs0bRvm9uCTMEftWKpdpVdoQRLr9KYB8LQRRytenFTuL2KvuiBHe7ILUllRy
         haIw==
Received: by 10.68.219.200 with SMTP id pq8mr1553469pbc.153.1331840091570;
        Thu, 15 Mar 2012 12:34:51 -0700 (PDT)
Return-Path: <patrickk...@gmail.com>
Received: from [10.0.2.219] ([12.17.188.147])
        by mx.google.com with ESMTPS id l1sm2497414pbe.54.2012.03.15.12.34.48
        (version=TLSv1/SSLv3 cipher=OTHER);
        Thu, 15 Mar 2012 12:34:49 -0700 (PDT)
Subject: Re: [Chrome DevTools] Any way to get scripts added with jquery.append('<script src="...">') to show up in dev tools?
Mime-Version: 1.0 (Apple Message framework v1257)
Content-Type: multipart/alternative; boundary="Apple-Mail=_8B6478CA-89D4-4E95-89C2-0E687700B2F9"
From: Patrick Stinson <patrickk...@gmail.com>
In-Reply-To: <2A52AAF5-80BA-4132-B518-377D31403...@res3d.com>
Date: Thu, 15 Mar 2012 11:34:42 -0800
Cc: Google Chrome Developer Tools <google-chrome-developer-tools@googlegroups.com>,
 Mike Robbins <m...@heliozilla.com>,
 Jesse Overton <je...@res3d.com>,
 d...@res3d.com
Message-Id: <42DC5B7D-E22F-4EFC-93B6-E3842F1F8...@gmail.com>
References: <406243ff-abd2-4333-963d-9aa4e98a2...@tl5g2000pbc.googlegroups.com> <CAB6O+xaST_icawfM3X7WrA0_H968hXvxNgkgAHKqHTxZKq5...@mail.gmail.com> <2A52AAF5-80BA-4132-B518-377D31403...@res3d.com>
To: Vsevolod Vlasov <vse...@chromium.org>
X-Mailer: Apple Mail (2.1257)


--Apple-Mail=_8B6478CA-89D4-4E95-89C2-0E687700B2F9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

I am using Chrome stable (non-canary).

On Mar 15, 2012, at 11:17 AM, Patrick Stinson wrote:

> http://www.res3d.com/bugs/append_script/append_script.html
>=20
> Patrick Stinson
> Director of Software Development
>=20
> Resolution3D
> T: 907-644-6258
> C: 907-350-2370
> www.res3d.com
>=20
>=20
>=20
> On Mar 15, 2012, at 10:56 AM, Vsevolod Vlasov wrote:
>=20
>> After evaluating the line below in console on some random site I can =
see test.js appearing in the scripts panel script list.
>>=20
>>=20
>>=20
>> a =3D $('body').append("<script =
src=3D'http://localhost/test.js'></script>");
>>=20
>> Could you please describe scenario that reproduces your problem in =
more details (preferably providing some test url).
>>=20
>> Thank you,
>> Vsevolod
>>=20
>> On Thu, Mar 15, 2012 at 9:36 PM, Patrick Stinson <patr...@res3d.com> =
wrote:
>> I'm adding scripts on demand using jQuery.append('<script
>> src=3D"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.
>>=20
>=20


--Apple-Mail=_8B6478CA-89D4-4E95-89C2-0E687700B2F9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I am =
using Chrome stable (non-canary).<div><br><div><div>On Mar 15, 2012, at =
11:17 AM, Patrick Stinson wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><a =
href=3D"http://www.res3d.com/bugs/append_script/append_script.html">http:/=
/www.res3d.com/bugs/append_script/append_script.html</a><div><br><div =
apple-content-edited=3D"true">
<div>Patrick Stinson<div>Director of Software =
Development</div><div><br></div><div>Resolution3D<br><div><div =
style=3D"color: rgb(0, 0, 0); font-family: arial; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: =
0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
font-size: small; ">T: 907-644-6258</div><div style=3D"color: rgb(0, 0, =
0); font-family: arial; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: =
none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
font-size: small; "><div>C: 907-350-2370</div></div><div style=3D"color: =
rgb(0, 0, 0); font-family: arial; font-style: normal; font-variant: =
normal; font-weight: normal; letter-spacing: normal; line-height: =
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; =
font-size: small; "><a href=3D"http://www.res3d.com/" =
target=3D"_blank">www.res3d.com</a></div></div></div></div><div><br></div>=
<br class=3D"Apple-interchange-newline">
</div>
<br><div><div>On Mar 15, 2012, at 10:56 AM, Vsevolod Vlasov =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div>After evaluating the line below in console on some =
random site I can see test.js appearing in the scripts panel script =
list.<br></div><div><span class=3D"console-message-text source-code" =
style=3D"font-family:'dejavu sans =
mono',monospace;font-size:11px;white-space:pre-wrap;color:rgb(0,128,255)">=
<br>

</span></div><div><span class=3D"console-message-text source-code" =
style=3D"font-family:'dejavu sans =
mono',monospace;font-size:11px;white-space:pre-wrap;color:rgb(0,128,255)">=
a =3D $('body')</span><span style=3D"font-family:'dejavu sans =
mono',monospace;font-size:11px;color:rgb(0,128,255);white-space:pre-wrap">=
.append("&lt;script src=3D'<a =
href=3D"http://localhost/test.js">http://localhost/test.js</a>'&gt;&lt;/sc=
ript&gt;");</span></div>

<div><br></div><div>Could you please describe scenario that reproduces =
your problem in more details (preferably providing some test =
url).</div><div><div><br></div><div>Thank =
you,</div><div>Vsevolod</div><div><br></div><div>

<div class=3D"gmail_quote">On Thu, Mar 15, 2012 at 9:36 PM, Patrick =
Stinson <span dir=3D"ltr">&lt;<a =
href=3D"mailto:patr...@res3d.com">patr...@res3d.com</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class=3D"HOEnZb"><div class=3D"h5">I'm adding scripts on demand =
using jQuery.append('&lt;script<br>
src=3D"something.js"&gt;&lt;/script&gt;'). Is there some way to get =
these to show<br>
up in the scripts list in dev tools so I can set a breakpoint and<br>
debug the code? Right now I have to add a "debugger" statement to =
load<br>
the script source into dev tools debugger.<br>
</div></div></blockquote></div><br></div></div>
=
</blockquote></div><br></div></div></blockquote></div><br></div></body></h=
tml>=

--Apple-Mail=_8B6478CA-89D4-4E95-89C2-0E687700B2F9--