472,807 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,807 software developers and data experts.

.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 1076

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Jack Man | last post by:
Hello. I need to write a small bit of code for a web application for commercial intranets. A small control panel in a web browser needs to be always visible (i.e in front of other windows) when...
by: Slawomir Piotrowski | last post by:
Hello, I'm writing C# code and executing it using InstallUtilLib.dll from custom action during an installation process. It works fine. I've written some code to add an item (component) to...
by: Timothy Elvidge | last post by:
I have a default page thet causes Visual Studio to crash when opening it in design view. I have narrowed it down to the template colum but have no idea how to prevent this happening. The page...
by: chrisfarscape | last post by:
I am having a problem getting my visual studio to recognize my option buttons within a table control. When I place <asp:TableCell> <asp:RadioButton id”test1” Text=”Test”...
by: String | last post by:
Don't have the fix I need it. This is the exact problem from microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;819349 They do a nice job describing it and how to reproduce it....
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and...
by: miztaken | last post by:
Hi, My C# application have a following code to create an instance of Visual Studio. System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE. 8.0"); Object obj =...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.