469,630 Members | 1,225 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,630 developers. It's quick & easy.

.net studio (javascript) : dynode code not visible in visual studio

d d

I'm using Visual Studio 7 (.NET 2003) to debug JS code and find that code
that was written into a script block dynamically doesn't show up. Whenever
any of that code executes, there's no source to go with it. I suspect this
because it wasn't loaded into the browser directly from a .JS file, so it
doesn't know where it's from.

There's an inconsistency though. If I have a block of code (in a string) and
I eval it into existence, then in "running documents" I see "eval code" and
the source code is accessible and can be stepped thru from there. I can set
breakpoints in any code I eval'ed into existence and step thru it no

If, however, I brought that code into existence by creating a script
element, adding the string block of code into the .text property, and then
using insertAdjacentElement or .appendChild, then I don't see it anywhere.
Any attempt to set breakpoints or step thru any of that code and I just get
"no source code available".

It's not that the code isn't working, it's just a pain if I have a bug.

Sep 28 '06 #1
0 981

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Slawomir Piotrowski | last post: by
1 post views Thread by Timothy Elvidge | last post: by
5 posts views Thread by chrisfarscape | last post: by
8 posts views Thread by chrisdude911 | last post: by
3 posts views Thread by =?Utf-8?B?UGhpbCBKb2huc29u?= | last post: by
13 posts views Thread by miztaken | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.