visual-studio-debugging

Quick way to toggle 'break on all exceptions' in VS2012?

喜欢而已 提交于 2019-12-04 23:47:35
I regularly find it very useful when debugging to switch on the Common Language Runtime Exceptions: Thrown option in Visual Studio's Debug > Exceptions screen. I'd like a quick way of doing this, since it's always the same checkbox I'm toggling and that screen is very slow to load. In previous versions, it was possible to do this with a macro , but macros have sadly been removed from VS2012 . Does anyone know of a quick/easy way to do this with a plugin/extension/keyboard shortcut? Simon Opelt Exception Breaker is a Visual Studio (2010, 2012, 2013) plugin created by a fellow SO user for that

What does -1.#IND000 mean in the Visual Studio debug window?

非 Y 不嫁゛ 提交于 2019-12-04 22:41:54
In the Visual Studio 2010 watch window, I found the value of a variable became -1.#IND000. What does this mean? Chun-Fu Chao IND is the representation of NaN (Not a Number) in Windows system. IND = "indeterminate form", mostly a result from an illegal operation like dividing by zero or arithmetic operation with infinity. It means the content is undefined, can result from a division by 0. 来源: https://stackoverflow.com/questions/9883128/what-does-1-ind000-mean-in-the-visual-studio-debug-window

ASP.NET and Android Wireless debug without internet

假装没事ソ 提交于 2019-12-04 20:53:26
问题 I have an ASP.NET MVC Web Application which is displayed through my Android device on the Android Application with a WebView activity. When both the android device and server are on the same internet connection, I am able to debug with wireless with Visual Studio 2012 and IIS Express . Soon I need to demonstrate the application at a conference at which I won't have internet to connect to. Is it possible to do a wireless debug without internet? I have been searching for a solution but can't

Cannot See Values While Debugging ASP.NET Core

我的梦境 提交于 2019-12-04 20:21:00
问题 When debugging an ASP.NET Core application, using Visual Studio 2015, I cannot see the variable, parameters and field values, when, for example, I hover them. I cannot add them to the watch as well. I am running in debug. 回答1: We might have found a solution (or at least a workaround) for the problem. If we go into Tools > Options > Debugging and enable Use Managed Compatibility Mode then we can inspect all the values we like. I hope this solves the issue for you as well. Update: Visual Studio

The Web Server Could Not Find the Requested Resource visual studio debugging

做~自己de王妃 提交于 2019-12-04 19:39:23
问题 Issue I have a .net 4.0 Web Application running in visual studio 2012, every time I go to debug the site i'm receiving the following error: The Web Server Could Not Find the Requested Resource What I've tried I've followed microsoft's website with solutions: msdn From a command prompt window, run the following command: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i I've also attempted to remove the .csproj.user files Since we use Source Control i've deleted all items, the

Visual Studio - how to attach debugger to restarted application?

独自空忆成欢 提交于 2019-12-04 12:02:14
I have an application in C++ developed in VS2010. This application has an ability to restart itself when needed (some changes that requires it to reboot). Now there's some bug that occurs only under certain circumstances on the beginning of the new instance after the restart. The problem is that I can't find out what it is, because the new instance does not have the debugger attached (VS debug mode ends with the initial instance closing). Any idea how to automatically attach a debugger to the new instance? Thank you I "discovered" how this is done after getting infected with some malware that

Is there a way to prevent Visual Studio from breaking on exceptions in a specific method?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 10:25:38
问题 I know I can control the way Visual Studio handles exceptions according to their type and to the fact that they're eventually caught using the "Exception" dialog. However, I've got a library that's internally throwing (and catching) an ArgumentOutOfRange exception when I'm calling a specific method. The exception is thrown (and caught by the library) maybe 1% of the time, but I'm calling this method a lot. The editor says it's by design (and indeed, the design they've chosen makes sense). The

How is this causing an endless loop?

偶尔善良 提交于 2019-12-04 08:42:43
Some legacy code I'm stuck maintaining is stuck in an infinite loop (and thus I myself seem to be in one); I can't figure out why/how, though. Here's the app's entry point, where it instantiates the main form (frmCentral): CODE EXHIBIT A public static int Main(string [] args) { try { AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(GlobalExceptionHandler); string name = Assembly.GetExecutingAssembly().GetName().Name; MessageBox.Show(string.Format("Executing assembly is {0}", name)); // TODO: Remove after testing <= this

Can't break in global.asax / Application_Start

℡╲_俬逩灬. 提交于 2019-12-04 07:58:44
问题 I got a break point on the first line of Application_Start() , but Visual Studio wont break on it. Visual Studio have attached itself to the IIS working process: Auto-attach to process '[2092] w3wp.exe' on machine 'SRD00510' succeeded. My breakpoint in the home controller do work. update I've tried: iisreset restarted visual studio Rebooted. Tried to reinstall aspnet ( aspnet_regiis -i ) 回答1: Reading your question, I assume you are using IIS for debugging, not Visual Studio Development Server

How can I tell which process I am debugging (attached to multiple processes)?

大兔子大兔子 提交于 2019-12-04 07:49:52
I'm debugging a windows service which has two running instances, by attaching to both instances. I am doing this because I know only one instance will hit my breakpoint, but I'd like to know which instance that is, so that I don't have to attach to both in future. Is there a way, when attached to multiple processes, that you can tell which one has hit a breakpoint? A trial-and-error solution would be to attach one at a time and see if the breakpoint is hit, or, stop one of the services (through services.msc) and see which process ID disappears - but neither solution seems scale-able to me. Is