visual-studio-debugging

Debugging MVC application in VS2012 attempts to start IIS Express twice

旧街凉风 提交于 2019-11-27 20:26:48
UPDATE I'm certain this is a Visual Studio bug with no obvious solution. I've encountered a number of people who have the same exact issue. I have submitted a bug ticket with Microsoft here: http://connect.microsoft.com/VisualStudio/feedback/details/778864/vs2012-is-spawning-two-iisexpress-processes-when-attempting-to-debug If you are having the same issue as described below, please go vote up the bug ticket so that it gets more attention. Whenever I attempt to debug an MVC3 (or MVC4) application in Visual Studio 2012 configured to run on IIS express (version 8), I get the following error:

Debugging Azure: Error attaching the debugger to the IIS worker process

∥☆過路亽.° 提交于 2019-11-27 19:48:28
I have a web application asp.net to deploy to Windows Azure. I try to run it on local first. But when debugging, I catch this error from VS2010: "There was an error attaching the debugger to the IIS worker process for URL 'http://127.255.0.0:82/' for role instance 'deployment16(6).WindowsAzureProject2.WebApplication3_IN_0'. Unable to start debugging on the web server ......." I've search so hard to find the solution for this problem but there's nothing seems work for me. I'm a newbie in Windows Azure, it's really a big trouble with me. Miguel Lopez I had similar problem with Windows 8,

Disable/remove child Breakpoints?

痴心易碎 提交于 2019-11-27 19:22:53
问题 I'm debugging an ASP.NET Website with C# in Visual Studio. When I set a breakpoint (during debug), over time, the created breakpoint will accumulate many child breakpoints. (See here.) Now, sometimes when I remove a breakpoint by clicking the red glyph, the breakpoint will still be hit the next time the line is executed, because the child breakpoints persisted. Removing the breakpoint in the breakpoint window will resolve the problem, but it's annoying to find the correct breakpoint(s) when

asp.net mvc debugger throwing SEHException

纵饮孤独 提交于 2019-11-27 18:30:49
问题 While I am trying to debug (using F5) the application with in VS, it is showing me the following exception: External component has thrown an exception. and here is the stack trace: 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.Runtime.InteropServices.SEHException: External component has thrown an exception.` Source

Attaching to a child process automatically in Visual Studio during Debugging

风格不统一 提交于 2019-11-27 18:30:29
When writing plugins for media center your plugin is hosted in ehexthost.exe this exe gets launched from ehshell.exe and you have no way of launching it directly, instead you pass a special param to ehshell.exe which will launch the plugin in a separate process. When we are debugging media browser I find the process of attaching to a second process kind of clunky, I know about Debugger.Attach and also of some special registry entries I can use. Both these methods don't exactly fit my bill. What I want is to press F5 and have my current instance of visual studio attach to the child process

Enable the javascript debugger in the Page Inspector

折月煮酒 提交于 2019-11-27 17:50:53
Visual Studio 2012 comes with the very nice Page Inspector. I like it! Problem though, I haven't found how (if?) I can turn on JavaScript debugging. Could someone point me in the right direction? In IE9 (only one time): Tools > Internet Options > Advanced tab > In Browsing category > Clear "Disable script debugging" check boxes (both) > restart IE. In VS 2012: Run the Page Inspector ( when javascript error box opens, click No ! ) Choose from VS menu: DEBUG > Attach to process... Select "WebBrowserServer.exe" and click Attach In Page Inspector window click the Refresh icon. Debugging works

The Following Module was built either with optimizations enabled or without debug information

谁说胖子不能爱 提交于 2019-11-27 17:05:31
I cannot get rid of this in my VS 2008 web project when debugging. I've checked that it's in debug mode on the non-web project in question and it's in Active(Debug). Deleted all items in my .NET 2.0 temp folder in Windows. Not sure what else to do here. Try disabling "Enable Just My Code" in Tools/Options/Debugging/Options. Jerther I had the same problem and discovered that I wasn't outputting my debug info on my build. If you right click on the project and go to 'properties', then select the 'build' tab, on the bottom of the page there's an 'Advanced...' button that will display your setting

ASP.NET MVC5/IIS Express unable to debug - Code Not Running

狂风中的少年 提交于 2019-11-27 13:04:00
I start a VS2013 VB.Net MVC5 Web Application, set a breakpoint in HomeController About method and run "Start Debugging", navigate to About page and receive the message "Code not running - The current Thread is not currently running or the call stack could not be obtained" preventing any debugging. If I set a breakpoint in Global.asax Application_Start, the breakpoint works fine. Changing the "Enable Edit & Continue" makes no difference. Anyone have any ideas what is happening? Update : My environment was Windows 8.0 Pro with VS2013 Ultimate. I have since flushed my system and done a completely

Visual Studio 2013 can't debug javascript in cshtml

只愿长相守 提交于 2019-11-27 12:42:03
问题 I have an ASP.NET Web Application created with Visual Studio 2013. I am attempting to debug JavaScript in a CSHTML file. However, whenever I launch the webpage, any breakpoint turns into a red circle arrow and states, "The breakpoint will not currently be hit. No executable code of the debugger's target code type is associated with this line. Possible causes include: conditional compiliation, compilier optimizations, or the target architecture of this line is not supported by the current

VS2012 Breakpoints are not getting hit

拥有回忆 提交于 2019-11-27 11:07:45
问题 I have a class that looks like this: public class MyService { private MyService(){} public static string GetStuff() { var stuffDid = new MyService(); return stuffDid.DoStuff(); } private string DoStuff() { //do stuff } //other private helpers } Obviously I left a lot out, but thats the general shell. Now, I have a unit test: [Test] public void MyTest() { var results = MyService.GetStuff(); } I set breakpoints on my unit test, and I can see that results has data. However, I set breakpoints