visual-studio-debugging

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

安稳与你 提交于 2019-12-22 01:37:33
问题 In the Visual Studio 2010 watch window, I found the value of a variable became -1.#IND000. What does this mean? 回答1: 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. 回答2: 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

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

会有一股神秘感。 提交于 2019-12-21 17:38:12
问题 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

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

余生颓废 提交于 2019-12-21 17:33:58
问题 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

Capture VS local variables while debugging in EnvDTE

北城以北 提交于 2019-12-21 06:06:42
问题 Is it possible to capture the debug data that's used by the locals and debug window, using EnvDTE for a .vsix visual studio extension? Or is it possible through another method? I would like to create a custom Locals window that we can modify to display some of our more heavy content as we like, without sacrificing the original Locals window for power users. The ideal solution would be to grab the data being sent to the locals window so I could build my own tree. 回答1: Turns out this is

Name does not exist in the namespace

泪湿孤枕 提交于 2019-12-21 05:25:09
问题 I am working on a simple UWP project using data template binding in VS 2015. When ever I try to specify the type for the Datatemplate I get an error. XAML: <Page x:Name="RootPage" x:Class="Adaptive_News_Layout.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Adaptive_News_Layout" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup

How can I avoid debugging into Boost source code in Visual Studio?

ぐ巨炮叔叔 提交于 2019-12-21 05:00:54
问题 Is there a way to exclude boost source code (or any other) from debuging? I don't want to step into boost internal source code. for example: boost::shared_ptr<Xyz> xyz(new Xyz()); xyz->someMethod(); when I want to step into Xyz::someMethod() using F11 the debugger first steps into boost/shared_ptr.hpp before I get into Xyz::someMethod() 回答1: Launch regedit and navigate to the following key: Under a 32bit OS: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\NativeDE\StepOver Under a

Controller actions hit multiple times - ASP.NET MVC 4 App running in Azure Emulator

半腔热情 提交于 2019-12-21 04:39:09
问题 This might take some time to explain, but here I go :). I created two Visual Studio 2012 projects: A project using the (Web -> ASP.NET MVC 4 Web Application) template in Visual Studio's Add Project dialog. I didn't add a unit test project. A project using the Azure cloud service template (Cloud -> Windows Azure Cloud Service). I added a single role, an ASP.NET MVC 4 Web Role, and again didn't add a unit test project. I left both of these projects totally untouched from the way that Visual

Vector 'no operator “[]” matches these operands' error in Visual Studio watch

谁说胖子不能爱 提交于 2019-12-20 17:25:24
问题 When stepping through the following sample code in Visual Studio 2012: std::vector<int> test; test.resize(1); test[0] = 4; I can set a watch on test and inspect its 0th element. However, if I set a watch on test[0], I get the error 'no operator "[]" matches these operands': How can I inspect the value of test[0] directly? 回答1: I found one solution which does not depend on the internals of the class. The expanded form of the operator call seems to work for me. In this case it's the following

Visual Studio 2015 Debug doesn't work in multithread application

心不动则不痛 提交于 2019-12-20 09:58:19
问题 In my project I have a heavy part of code that should be executed on a separate thread without blocking UI. When debugger hits the breakpoint inside this code, VS2015 freezes for 5-10 seconds. After that, if I try to continue debug (by pressing Step Over, Step In or Continue), the app goes from paused state to working state, Debugging Tools are ticking, but nothing happens and there's 0% of CPU utilization. If I press Break All then, the "cursor" (don't know the correct term) is shown at

Debugging Asp.net MVC 5.2.3 source code

大兔子大兔子 提交于 2019-12-19 10:29:14
问题 My goal is to debug Asp.net MVC 5.2.3 source code. I created Asp.net MVC application in Visual Studio 2013 and updated all NuGet packages. Set up VS2013 as described in https://referencesource.microsoft.com/setup.html Added http://referencesource.microsoft.com/symbols, https://nuget.smbsrc.net, http://srv.symbolsource.org/pdb/Public, http://srv.symbolsource.org/pdb/MyGet, http://msdl.microsoft.com/download/symbols https://nuget.smbsrc.net to symbols But when I'm trying to "Step Into" View