.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Debugging Javascript VS 2010 BreakPoints

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net

I'm using Visual Studio 2010. I'm trying to debug it but each time I try to set a break point in the Javascript I get a message at the bottom of the screen "This is not a valid location for a breakpoint."  Is there some setting I need to set?  

View Complete Post

More Related Resource Links

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Parallel Debugging: Debugging Task-Based Parallel Applications in Visual Studio 2010


In Visual C++ 10 and the Microsoft .NET Framework 4, Microsoft is introducing new libraries and runtimes to significantly ease the process of expressing parallelism in your code base, together with new tool support for performance analysis and debugging of parallel applications. In this article, you will learn about debugging support in Visual Studio 2010, much of which is focused on task-based programming models.

Stephen Toub, Daniel Moth

MSDN Magazine September 2009

Debugging Tips with Visual Studio 2010

This is the twenty-sixth in a series of blog posts I'm doing on the VS 2010 and .NET 4 release. Today's blog post covers some useful debugging tips that you can use with Visual Studio.  My friend Scott Cate (who has blogged dozens of great VS tips and tricks here ) recently highlighted these to me as good tips that most developers using Visual Studio don't seem to know about (even though most have been in the product for awhile).  Hopefully this post will help you discover them if you aren't already taking advantage of them.  They are all easy to learn, and can help save you a bunch of time. Run to Cursor (Ctrl + F10) Often I see people debugging applications by hitting a breakpoint early in their application, and then repeatedly...(read more)

VS 2010-Fix for hang on debugging ASP.Net 3.5 Apps.


Just got this in an email from Microsoft:

Greetings from Microsoft Connect!
This notification was generated for feedback item: VS 2010 - Hangs when debugging ASP.Net 3.5 web application or website which you submitted at the Microsoft Connect site.
The fix for this is now available for download and install from https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=30738&wa=wsignin1.0
Best Regards,
Visual Studio Debugger

Note: The fix for this issue was packaged with the fix for another issue, the KB article currently only lists the other issue, but this download does contain both fixes
You may receive a general "Feedback Item Updated" notification as well, if any other changes were made by Microsoft.
Thank you for using Microsoft Connect!
the Microsoft Connect Team



Breakpoints stopped working during debugging in vs.net 2005

I had the strangest bug yesterday while trying to debug in vs.net 2005.... I had an '05 web application.  I clicked the "Run" button to start debugging, and the webpage popped up fine.  I could run through the pages fine.  Everything seemed fine....UNTIL!   Until I tried to start inserting breakpoints into my code.  The application ignored them.  In addition, I noticed my little green visual studio "Start Debugging" arrow (which is normally greyed out while in debug mode) was green.  It was as if visual studio completely detached itself from my website I was trying to debug. After playing around with it for a while, I realized I also had a vs.net 2008 solution open as well.  My '08 solution wasn't in debug mode or anything, it was just sitting there open.  I just happened to close it, not thinking anything of it, and presto!  My 2005 debugger started working again! So basically, I can't debug an '05 solution (or at least a web solution, as that's all I tried) while I also have an '08 solution open.  Anyone know why?  Is there anything I can do to prevent this?   Thanks.  

Javascript error when attempting to switch page layouts in SharePoint 2010

I hope I put this in the correct forum. I am experiencing the following error when attempting to change the layout of an existing SharePoint 2010 page. But it does not seem to happen on all page types, just publishing pages. This error is happening on both the development server and both test servers. I have look in to the logs, since if it a javascript error there was nothing, which would be expected but I had to try. I have look at the cui.js file but was unable to spend enough time trying to figure out what exactly is going on in this file. Error being received ... Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 7 Sep 2010 21:10:54 UTC Message: Object required Line: 2 Char: 6422 Code: 0 URI: http://devintranet2010.myconexus.ca:85/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D   If anyone has any ides or can point me in a direction that will allow me to productively continue my investigation, the information would be greatly appreciated. Regards Kyle

Cached Javascript file using feature VS 2010 - Bug?

Hi, I am using a custom action in an element.xml to reference an external script in my SP2010 solution - by adding a SP 2010 layouts folder and adding the script in there. Everything deploys and runs fine, however, if i update the javascript file and redeploy the solution, when debugging the javascript, the old (non updated) file is loaded and executed. I have tried retracting the feature and re-deploying, cleaning the solution, rebuilding and deploying, yet the javascript file loaded dynamically is still the old file. It seems to be updated intermittently, however, this is quite awkward as I cannot accurately guage when the file is refreshed. I am closing the IE window after every debug session.  Is there a process I should be following to ensure that the script is updated every time? Any help would be greatly appreciated. Cheers.      

Problems Debugging - Breakpoints being ignored



Am currently working on a Visual Studio 2005 web project, which is ignoring breakpoints - but only in certain parts of the application.

This is proving very frustrating as a deadline is looming!

My security is fine, set to Windows Auth, Anonymous access. ASPNET is in the Debugging Users group, normal debugging works just fine.

I understand the compilation mechanism has changed in .NET 2.0 - could this be affecting it.

To overcome the possibility it is executing stale code, I do a Clean Solution and then a Rebuild before I run it, just to be sure.

Any ideas?


No Javascript / JQuery intellisense in VWD 2010


I used to have intellisense for Javascript, including JQuery, in Visual Web Developer 2008. However in 2010 it has disappeared.  I have tried resetting my settings, but this has not helped.

Any suggestions?

Many thanks in advance


Start a SharePoint 2010 WorkFlow using JavaScript



I need to start a SharePoint WorkFlow using JavaScript, the JavaScript would be in bespoke Asp.Net page. Any ideas ?



Editing javascript with debugger attached (VS 2010)


A change between VS 2008 and VS 2010 seems to be preventing me from editing javascript files with the debugger attached.

Previously, when debugging a site running on local IIS7 (Win 7 x64), I could open one of the loaded scripts visible in the solution explorer, make a change, save it and reload the page.

In VS 2010 all of my loaded scripts are marked as [dynamic] [read-only] despite being served as static files.  So they are not editable.  In VS 2008 this only happened if I debugged external websites, not local ones running off of my own hard drive.

Is there a setting I may have wrong?  Either in IIS or VS?  The ability to easily correct js errors while in debug mode was a tremendous boon in my development process.

Jeffrey Kretz

Using javascript and ActiveX in developing web part for sharepoint 2010


I am trying to develop a webpart that uses javascripts to access an ActiveX. The activex is a clinet side component which is accessed by javascripts to to open graphics file and display it.

I put activeX inside the _layout directory.

Please is there any help on how we refrence and includes javascripts code files and the ActiveX inside the webpart? I use VS2010 and tried to build a webpart  but it seems the javascripts didnt run and am sure there is something missing.

Thanks alot for any help.

Accessing External Javascript files (.js) in VWD 2010 (.Net 4)


Hopefully I've selected the appropriate forum to post. If not, kindly let me know and I will post in that forum.

I have searched hundreds of posts over countless forums, but am unable to run a Javascript that is placed in a separate .js file. If the script is placed directly in the <HTML> and ASP markup, the script runs fine. I am a newbie at this and resolution may be quite simple. But I cannot figure it out.

I have simplied the example down to a single .aspx page with a single button and the codebehind in VB, knowing that if I cannot get this working, I certainly won't be able to get my real scripts working.

I am currently running VWD 2010 on the .Net 4 framework. I've been working on this problem on and off over the past 3 weeks and simply cannot get it to work, so I continue to insert the code directly into the markup. I have tried countless changes to the following code, but not once able to get it to work.

Any help, suggestions or recommendations will be graciously accepted and very much appreciated.


The .aspx page is as follows:


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test_Script.aspx.vb" Inherits="Test_Script" %>



Debugging SQLCLR in VS 2010 using attach to process


After reading numerous posts / threads, I still can't get an answer. We have assemblies built in Visual Studio 2008 (.NET 2.0) and could debug them without any issues (on the same server). Since we upgraded to Visual Studio 2010, the "attach to process" does not work and the breakpoints don't get hit.

I've followed numerous workarounds, such as making sure the correct debugger is used by adding a config file to sqlservr.exe, but this did not make a difference.. Articles can be found here: http://webstats.interknack.com/BLOGS/BOBB/post/SQLCLR-debugging-and-VS-2010-revisited.aspx and http://blogs.msdn.com/b/robertbruckner/archive/2010/06/20/debugging-custom-extensions-with-visual-studio-2010.aspx.

Here an example of my sqlservr.exe.config file:

<?xml version="1.0"?>
   <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v2.0.50727" />

Our assemblies are tar

adding javascript breaks default page layout in vwd 2010


I'm putting together my first project in vwd 2010 and I'm starting with the default settings for a web form project.  I'm trying to add an external js file to a content page that inherits from the default master page.   When I add my .js file to the page, the navigation links, which normally display horizontal, desplay like a vertical list.  If I comment out the code then it displays ok.  

Here's how I'm adding my file in the code behind:

    protected void Page_Load(object sender, EventArgs e)
        if (!ClientScript.IsClientScriptBlockRegistered("getNewWord"))
            ClientScript.RegisterClientScriptBlock(this.GetType(), "getNewWord",
            "<script language=javascript src='Scripts\\getNewWord.js'>");   

 The navigation markup in the master page looks like this:

            <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                        <asp:MenuItem NavigateUrl="~/Home.aspx" Text="Home"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>

Visual Studio 2010 is generating an error when i try to debugging !! ( some dll dependencies error)


Error    1   :  Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\website8\fc57c8f4\9cd69aba\App_global.asax.f2udfgci.dll' or one of its dependencies. The system cannot find the file specified.      



Server Error in '/WebSite8' Application.

Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\website8\07dcfacd\cdec788c\App_global.asax.thpappgt.dll' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\we

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend