Visual Studio :: Trying To Debug The Applications - The Step Into (F11) will Act As F5?
Apr 22, 2010I was trying to debug the applicatioons but after certain amount of minutes (say 3 minutes), the step into (F11) will act as F5.
View 6 RepliesI was trying to debug the applicatioons but after certain amount of minutes (say 3 minutes), the step into (F11) will act as F5.
View 6 RepliesI'm developing an ASP page and I noticed odd behaviour when I'm trying to step through server side call backs. Specifically some of the time, when I press F10 to execute the next statement the debugger acts like I pressed F5 to continue and takes off. Some of the time stepping works and some of the time it doens't. In addition, testing the same call back I can sometime step several times before it takes off and other times as soon as I click F10 it takes off. If I set explicit breakpoints it will always hit them but as I said, stepping often results in the debugger not stoping on the next statement.
I feel like I didn't have this earlier but I'm mystified as to why it is doing this
When I am actively developing it is extremely cumbersome to write some code, fire up the debugger to test said code, wait a minute for the debugger to start, look at the page in the browser, stop the debugger, edit the code, rinse, lather, repeat. I can get around that by using CTRL-F5 and CTRL-SHIFT-B during development but I lose all the benefits of the debugger. Is there a better way to use the debugger, or something else I can do to get quick rebuilds and use of the debugger? I/we do write unit tests, but you also need to test your app in the browser so please no "you shouldn't have this problem if your unit tests were written properly"
View 5 RepliesError: When I hit F5: "A project with an output type of class library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."Trying to debug the code in windows applications. It throws the above error.Googled, most of them say to download the exe file. But when I've right click the Project ->add reference-> browse -> bin-> debug -> .dll downloaded, still throws the same error. Unable to locate the executable file.
View 1 RepliesWe all know that we should only be publishing our ASP.NET Web Applications with release build type, so why do I not get a warning when I trigger the "Publish" command in Visual Studio 2008, for a project configured to build in debug mode? Sure, there might be cases where I need to publish a debug build to a development or test environment, but answering yes in a confirmation dialog would be acceptable in these cases. Is there an option that I have overlooked, forcing Visual Studio to warn me every time I try to publish a debug build? Yes, we could just ban using the "Publish" command and use a more solid build management tool, but this involves a change of process and right not be an option in this particular case.
View 3 RepliesAutoComplete is an ASP.NET AJAX extender that can be attached to any TextBox control, and will associate that control with a popup panel to display words that begin with the prefix typed into the textbox.
View 1 RepliesDebug-Start Debugging/Debug-StartWithoutDebugging OR Project ASP.Net Configuration launches Dreamweaver. It started lastnight, I had both Deamweaver and VWD 2008 express open at the same time - (I was looking at JQuery in the Microsoft and Dreamweaver enviroments simultaniously). After the first tie this happened, I closed down Dreamweaver (CS3) and it opened when I tried to run my VWD project. I reinstalled VWD 2008 express, IIS and disabled Dreamweaver (renamed the exe). Dreamweaver still came up.
View 4 RepliesIn the Visual studio IDE is it possible to step backwards in the debugger? If this is not possible,can I somehow trace my step backwards in the compiler?
Also if I am stepping through C# code in the debugger, is it okay to add documentation in the file while I am debugging? I tried this and recieved a pop-up message box informing me that the code had changed. Otherwise the IDE seemed forgiving in regards to comment changes in debug mode. Also I guess this might also lead into the question of wether it is acceptable to add code during debug mode?
I have a solution that consists of some web projects and websites (seperate projects in one solution) When I run the main project and debug I want to step into a function that resides in another project as a business layer function and then step into another function in DAL project. I set breakpoints in both projects (DAL and BLL) but am not able to step into those functions!!!
What is the problem with vwd express, It should support such vital thing.
I am started working in Visual Studio 2010. But i founf F# is for developing console appplication only. Now f# support console application only or can i use for my web / windows applications also?
View 2 RepliesI have a Visual Studio solution containing two web applications. I would like the first to depend on the second (pages in the first may contain links to, or possibly post to pages in the second). Furthermore, I would like to be able to launch the first project on a development server (standard debugging procedure for web apps in VS) and have the references to the second project be fully functional.Does anyone know the best way to achieve this?
View 2 RepliesHow can i debug my deployed web service?
I have deployed a web service on my development machine and i am connecting it through my asp.net application, both web service and asp.net application are on same machine but web service is hosted on IIS.
I have 2 sollutions (1 CMS, 1 Customer specific with controls). The customer controls are coppied (with xcopy) to the CMS location. In the web.config of the CMS the specific controls are registered.The controls are useing functions from the CMS dll as well.How can I debug those two solutions as it where only one? I tried to start the CMS in debug mode with breakpoints in de CMS and customer controls, in this case only the breakpoints in the CMS are used. If I run the customer controls in debug mode only the braekpoint in this solution are used.The CMS is running on my local IIS 7.
View 1 RepliesI am using VS2010 and am working on an ASP.NET web application for .net 4.0.
I have created a file called StringUtilities.js and placed it in a subfolder of my application called Scripts.
The entire content of the file is listed here:
[Code]....
In one of my .aspx pages I have the following code:
[Code]....
On a button's "OnClientClick" (for example) I call the method encodeText() and everything works fine.
Today I added the method updateImage() which calls StringUtilities.js - updateAttribute() method, also added today.
If I open that unit in VS2010 and place a break point in the source code for the new method it turns white and says:
"The breakpoint will not currently be hit. No symbols have been loaded for this document.".
What gets even stranger (this is so hard to exaplain)....
Before today I did not have the method updateAttribute() in that .js file. So even though my source editor is showing all of my new source code changes, if I trace the previous method that did exists - htmlEncode(), the trace lines in the editor are highlighting where the lines "used" to be. which is near the top of that file as if my new code was not there.
It just sounds like there must be a different way of tracing javascript and the way I am doing it must not be it. I would have assumed it worked the same way I would trace my c# code.
When I ran Vista (x64) Prem with IIS7 and VS2008 sp1, I could press F5 and start debugging a web application and the debugge would run as long as I needed. I got a new PC that has Win 7 (x64). Now, the debugger will run 30-60 seconds and then quits. The web application still runs but the debugger shows that it is not in debug mode and the breakpoints are no longer hit. I know you can attach to the w3wp process and debug that way, but has anyone found a way to keep the debugger running for as long as you need when you press F5??
View 1 RepliesI have VWD Express and I can't debug lower layer methods in the application the debugger doesn't step into breakpoints that are set in these layers. what do I do? I need to debug lower layer assemblies most of the time.
View 10 RepliesI have vs 2003 & 2010 on same machine. But my application is in asp.net 1.1 so I have to work on VS 2003. (I dont have to migrate to 4.0).
I have followed this link http://msdn.microsoft.com/en-us/library/aa239576(v=vs.60).aspx but still it is not working.I put a break point on page load of my first login page. when I hit F5, the control comes to visual studio and make that line yellow but stays for few seconds only and then leave the contol and visual studio automatically.I'm not able to debug it. Don't know what the problem is.
how to run windows applications in hp touchsmart
View 1 RepliesI've got a Visual Studio 2010 solution that has multiple web applications in it. I've set one as the startup project but when I debug Visual Studio is starting up a development server for each web application in my solution. Is there anyway I can have Visual Studio only start up the development server for just the default startup project?
View 2 RepliesI'd recently installed Windows 7 Ultimate 64 bit, and after I did this I cannot debug (or simply run without debugging) my ASP.NET applications (I use VS 2010). I'm getting message: Navigation cancelled.There seems to be a problem with the localhost. I'd checked the HOSTS file - it's configured correctly, I compared the settings with my other machine where I don't have this issue.
View 12 RepliesI'm not sure if this is the correct forum for this but I was just wondering, I'm very new to Javascript programming and was wondering if their is a way to debug embedded JavaScript from Visual Studio, current and old versions?
View 7 RepliesI am developping an MVC3 RC2 application and just after hitting F5 on my asp web application, I am getting this error message program '[7780] w3wp.exe: Managed (v4.0.30319)' has exited with code -2 (0xfffffffe).So I am totally unable to debug my application
View 10 RepliesThe default ASP.NET web server that launches from within Visual Studio (Casini) is a little buggy on my development machine, so I like to publish to a local IIS instance on my dev machine and look at the web application there. However, I'm not automatically in "Debug Mode" when I launch the application this way.
I know that VS 2010 has an "Attach to Process" debug feature, but I'm not sure exactly how to use it. What do I need to do to be able to debug a local IIS ASP.NET web application from within Visual Studio? Specifically:
What settings do I need to change in the configuration of my web application?
What "Package/Publish Settings" do I need to change?
Is there anything I need to change in IIS?
Is there anything special I need to do in the "Attach to Process" screen?
Background Information: I'm running Visual Studio 2010 on Windows XP SP3 with IIS 5.1 and .NET 4.0.
Additional Information:
I should add that I've tried attaching to aspnet_wp.exe, but when I go to a page that I know has a breakpoint in it, I get the following message when I hover over the "open circle" breakpoint:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
I had everything up and running fine, was able to debug and everything.
I could attach to process and run a SP in the database and it would fire over to VS stopping on the breakpoint.
I can't remember what I did to mess it up but I ended up uninstalling my DB and reinstalling it; SQL Server 2005.
Now when I try to attach nothing happens. The SP runs and that is it I never go back into VS.
I'm thinking I have to reinsatll VS now.
I have solution with several projects, while debugging it gives me this message.
I tired to change it's properties to enable debug but didn't work.