Visual Studio :: Breakpoints Stopped Working During Debugging?
Sep 3, 2010
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.
View 2 Replies
Similar Messages:
Jun 30, 2010
In Visual Studio 2008 while debugging an ASP.Net website I set a breakpoint in the codebehind page. I refresh the page or submit to call the method, the breakpoint is hit. Then I delete the breakpoint and continue execution. I make a change to the codebehind page and save it. I submit or refresh again and the deleted breakpoint is back! It is hit again, and I delete it again. I have tried delete, disable, nothing works it keeps coming back if I make a change to the page. It is extremely annoying and unproductive. The only way I have found to make the breakpoint permanently go away is to use the Debug menu Delete all breakpoints item, which is obviously less than ideal. I have been able to reproduce this on other developers machines also. What is going on here? Is this by design? Is it a bug in VS? How do I keep these zombie breakpoints from resurrecting?
View 4 Replies
Jul 12, 2010
I have a asp.net mvc project in VS2010. In it I have a view called main.aspx that contains alot of javascript that frequently needs to be debugged. I can set the break point in the aspx page's javascript at edit time in VS2010. It appears as a mapped breakpoint. When I launch the debugger/IE browser, the javascript break point never gets hit. If I add a debugger; statement to my javascript I can launch a new visual studio instance and debug javascript. Unforunately, this requires a second visual studio instance and I have to set breakpoints all over again when I do it this way. Also, I have to remember to remove the debugger; statement when I am finished debugging. Is there a better way to get client side breakpoints working in Visual Studio 2010/IE?
View 3 Replies
Oct 13, 2010
nfortunately, I can't get my breakpoints to work when in debug mode in Visual Studio 2008 (ASP.NET 3.5, Windows 7, IIS7). The website compiles and opens in debug mode, but the breakpoints themselves generate the following error message:"The breakpoint will not currently be hit. No symbols have been loaded for this document."There are some recommended solutions online, but for various reasons, either they haven't applied or I haven't been able to make them work. I've been trying to find the solution for about 12 hours now, and I'm getting desperate.(Note 1: This problem is specific to this website. I do have other websites that I open in VS2008 where the breakpoints work fine.)(Note 2: There is only one website/project associated with this problem. This website does not have multiple projects.)
View 1 Replies
Jul 28, 2010
Using VS2010 Pro, I started up an web site and got the message "WebDev.WebServer20.exe has stopped working" - a very similar problem was reported at
[URL]
I checked C:WINDOWSassembly and found that System 2.0.0.0 was missing (again!), reinstalled it but still got
""
System.ArgumentOutOfRangeException was unhandled
View 4 Replies
Jan 6, 2010
Came into work this morning and discovered that my local asp.net developmentn server has stopped working. Im getting the following page :
[Code]....
Im running visual studio of my personal PC withing my company's network.
View 3 Replies
Sep 18, 2010
i have installed latest vs 2010 ultimate on windows 7
it works fine but as i want to close a website it sayas vs has stopped working restart/debug
what should i do?
View 2 Replies
Sep 29, 2010
I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me. These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing an updated aspx-page in the browser.
But yesterday, during development of a website, I noticed that even the smallest changes in html, javascript or anything in the .aspx-files doesn't get reflected when I save and reload the page in my browser. Rebuilding doesn't help either, actually I'll have to do a "Rebuild All" (in Visual Studio 2008) in order to see the changes. This applies to all aspx-files in my project.
I tried with minor changes on files in another web application project on the same server, and there it works as it should. Something must has happened to this particular application, but I cannot figure out what. Do you have any ideas on how to solve this?
View 2 Replies
Sep 29, 2010
I recently ran into some strange problems. Changes to files that are not code-behind (and not gets compiled to a DLL) should not require you to recompile the whole website, and this has never been I problem for me.These should actually get compiled dynamically when you first access the resource, e.g. the first time when browsing an updated aspx-page in the browser.
But yesterday, during development of a website, I noticed that even the smallest changes in html, javascript or anything in the .aspx-files doesn't get reflected when I save and reload the page in my browser.Rebuilding doesn't help either, actually I'll have to do a "Rebuild All" (in Visual Studio 2008) in order to see the changes. This applies to all aspx-files in my project.I tried with minor changes on files in another web application project on the same server, and there it works as it should. Something must has happened to this particular application, but I cannot figure out what.Do you have any ideas on how to solve this?
View 1 Replies
May 7, 2010
i put a break point at ADD button, when ever i click on the button the it is not entering into that?
what might be the problem?
previously it has worked but its not working.
View 1 Replies
Mar 17, 2010
I have my project in VS2005, its is working fine last few years, But now durning development i face problem regarding breakpoints, here Im unable to get stoppage at breakpoints, I have change setting of security in Internet options add localhost as trusted site, but still its remain the same.
I also try Attach to process.... option from the debug, here webDev.WebServer process of running site is disable. Now Im totally unable to debug my project.
View 6 Replies
Jun 3, 2010
I get this error when I hit F5 in VS 2008. I have checked that Windows authentication is enabled on the site and it is. I can mannully attach the debugger to the IIS process and it works. What could be wrong? I have tried alot of things without success.
View 2 Replies
Mar 7, 2011
I'm trying to debug my web application on my localhost machine in Visual Studio 2010 and I keep getting this error: "unable to start debugging on web server. The Microsoft Visual Studio remote debugging monitor(MSVSMON.exe) does not appear to be running on the remote computer."
Is there a way I can turn this off as I'm not trying to make any attempts debugging remotely.
View 1 Replies
Aug 5, 2010
When I try to set breakpoints in a JavaScript code file, I get the warning, "The breakpoint will not currently be hit. No symbols have been loaded for this document."
This is a fairly large project that was working normally under VS 2008. I just installed VS 2010 Pro Academic, and this is one of the new problems that have appeared. It's running under Win 7 64-bit, IE 8, and both of the IE "disable script debugging" options are turned off. Debugging is enabled in the web.config file. The JavaScript code in question is being executed normally, and inserting "debugger" in the code works as expected. While running under debugging, you can open the corresponding script document from the Solution Explorer, Script Documents, and insert breakpoints just fine. Attaching to the IE process (from the Debug menu) doesn't seem to make any difference.
Basically, everything I can think of looks normal, and yet I can't insert breakpoints into the original source code with VS 2010. The problem is reproducible on more than one JavaScript source file. I rebooted and consults The Great Google, all to no avail.
This is a real headache for development. Has anyone else discovered a fix for this?
(UPDATE: I spent a few hours and created a new project, and copied all of the files from the original to the new one. Now, I can set breakpoints n the new project, but still can't in the original. Something's different between the two, but it isn't clear what it could be.)
View 12 Replies
Sep 1, 2010
We've currently migrated our Classic ASP web to ASP.NET. Our greatest hope lies in using the Visual Studio for debugging. But this hope was destroyed devastatingly.There are lot of issues we encountered:No syntax highlightingNo breakpoints (message: "This is not a valid location for a breakpoint.")No Intellisense
We cannot find the reasons. But we think VS can't resolve our include links correctly. (In our case we remove all inludes and the page was highlighted again.)That's why we have a lot of questions:Can VS2008 handle includes (<!-- #include file="myinclude.inc" -->) at all?Are there any constraints we need to know? Maximal lines to include? Including<% .. %> or <script language="vb" runat="server"> .. </script>?
What settings have to be made?
View 3 Replies
Jan 25, 2011
I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c# class libraries. All projects are set to compile under .NET 3.5
When I set a breakpoint somewhere in the class libraries, the debugger breaks correctly and everything is fine. If I then stop debugging, modify code in the class library, and start debugging again (which of course rebuilds the libraries which were modified) the debugger ignores the breakpoints.
Has anyone else experienced anything like this? I'm lost and it's extremely frustrating to not be able to debug after making even a single line change and rebuilding.
Visual Studio 2010 Ultimate Windows 7 Professional 64-bit
View 2 Replies
Feb 9, 2011
I run the start debugging option...it runs successfully. but still is shows start debugging option is shown in the Visual studio 2005 IDE. And one more problem is ::I applied break points in one page and run the application. but those break points are not detected....
View 1 Replies
Mar 20, 2010
I am using VS2008, SP1. I am unable to put breakpoints in my client side javascript code. Wherever I try to put the breakpoint, I am getting the message: "This is not a valid location to put the breakpoint". I have the js intellisense working fine. I also unchecked the two "Disable Debugging" checkboxes on IE. Due to this problem, I am unable to debug the js in VS 2008.
View 3 Replies
Jan 27, 2010
I'm not sure what happened, I didn't change any settings. For example, i could type the following:
a{
then hit return, and get
a
{
Now though nothing happens. It's not formatting like it used to. where I can set this or switch it back? I checked Tools > Options > CSS but couldn't find anything there that fixed it.
View 3 Replies
Mar 3, 2010
Yesterday I've installed IE8 but now my debugging and breakpoints does not work in VS 2005! How can I make it work again? Is it a special browser setting?
View 2 Replies
Sep 14, 2010
I have a zillion warning messages when I view my webform "Validation (): Element 'menu' is not supported" and every "<asp:WhatEver" tag has a green squiggly line under it.
It looks like this:
I'm using VS 2010 Pro, and have tried reinstalling it.
View 4 Replies
Oct 11, 2010
I have a solution that was originally created using VS 2008. I have quite a few unit tests that all passed when ran in VS 2008.
Yesterday I opened this solution in VS 2010 and converted it using the wizard. The solution built just fine, it runs just fine, BUT now all tests that access the db fail. I get the same error on every test (below).
"The runtime has encountered a fatal error. The address of the error was at 0x5b3b5ad7, on thread 0x19a4. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack."
In test classes that use ClassInitialize() and ClassCleanup() methods, all the tests fail. All tests fail with the same error, "The agent process was stopped while the test was running." Tests in test classes that do not utilize ClassInitialize() and ClassCleanup() (these tests do not hit the database) all pass.
When this was a VS2008 project all 153 tests passed. No changes have been made to these tests, other than converting the project to a VS2010 project.
I've been playing around with one test class. I commented out the ClassInitialize() and ClassCleanup() methods. I rewrote one test method and mocked everything. I tried running just that one test. I still got the "The agent process was stopped while the test was running" error.
Visual Studio 2010, version 10.0.30319.1 RTMRel
Test framework: integrated VS 2010 MS Test
Mocking framework: Not using mocking, I have a db that is destroyed and recreated in MyClassInitialize(), it is populated with known values. Yes, I know I should be using mocking, but this is an older app and it has not been updated with all of the new bells and whistles yet.
DB Framework: NHibernate
Target Framework is 3.5 for all projects in this solution except for the test project.
The target framework is 4.0 for the test project. I tried changing it to 3.5, it will not let me.
"Attempted re-targeting of the project has been canceled. You cannot change the specified .NET framework or profile for a test project."
View 4 Replies
Sep 7, 2010
I have upgraded a Visual Studio 2005 Web Site in a 32 bit server to Visual Studio 2008 maintaining the same 2.0 framework in a 64 bit server with Windows 2008 R2 Server. The Web Site has several class libraries.
After porting to Visual Studio 2008 2.0 Framework using the Upgrade Wizard, I found that I was unable to hit a break point in the Project code behind files while I was able to in the class libraries. The bin folder has the dlls and the corresponding pdb files for the class libraries. I did start the Web site as an Administrator and made sure whole bunch of IIS7 properties are properly set.
I tried to rebuild the solution as a Web Application in Visual Studio 2008 and gave up that approach as I faced hundreds of error messages pointing to missing references and namespaces inspite of adding whole lot of references and namespaces to the Web.
View 12 Replies
Apr 8, 2010
is there an easy way to debug an application in vs 2008 without actually logging onto my machine as different users? its a winforms app in 3.5 on xp...i know how to do the whole "run-as" option when the program is done and built, but for testing its getting really annoying! maybe something like impersonate that web apps have...anything like that for winforms?
View 2 Replies
Jul 28, 2010
I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.
View 1 Replies