visual-studio-debugging

VS Image Watch extension natvis for BITMAPINFOHEADER?

ぃ、小莉子 提交于 2019-12-11 03:48:55
问题 The Image Watch extension for Visual Studio (http://goo.gl/TWre0X) allows you to see a bitmap in memory while debugging. Extremely useful, however I am stuck trying to define a natvis file to allow for viewing DIBs or BITMAPINFOHEADER or even just BITMAPINFO objects. Here is what I currently have: <?xml version="1.0" encoding="utf-8"?> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1"

Can I use something like DebuggerTypeProxyAttribute on a type that I don't own?

一笑奈何 提交于 2019-12-11 03:26:00
问题 I've got an IClaimsPrincipal variable, and I'd like to see how many claims are in it. Navigating through the properties in the watch window is complicated, so I'd like to customize how this object is displayed. I'm aware of the [DebuggerTypeProxy] attribute, which initially looked like it might do what I want. Unfortunately, it needs to be attached to the class, and I don't "own" the class. In this case it's a Microsoft.IdentityModel.Claims.ClaimsPrincipal . I'd like to display the value of

On Windows Phone “Step Over” exits from async method when I step over async method call with await

心不动则不痛 提交于 2019-12-11 03:14:19
问题 While debugging Windows Phone 8.1 app on device, "Step Over" exits from async method when I step over async method call with await. This does not happen in Windows 8.1 or desktop apps but in Windows Phone apps. Why does this happen? 回答1: This problem was caused by disabled option Suppress JIT optimization on module load . Explained in JIT Optimization and Debugging on MSDN 来源: https://stackoverflow.com/questions/32598151/on-windows-phone-step-over-exits-from-async-method-when-i-step-over

Visual Studio Debugger Watch problems

早过忘川 提交于 2019-12-11 02:59:32
问题 How can I find out the address of a variable on the stack in the visual studio debugger watch window (or elsewhere?) Reading the variable works fine: streets streets [11790](0x1c66a690 [...] std::vector<Street *,std::allocator<Street *> > But prefixing with & doesn't give me an address: &streets streets [11790](0x1c66a690 [...] std::vector<Street *,std::allocator<Street *> > Also, trying to read the size doesn't work, why is that? streets.size() CXX0075: Error: Cannot set up Function

Setting up visual studio c++ debugger to support symbols for modules loaded from memory

不想你离开。 提交于 2019-12-11 02:38:29
问题 Im using the following code to load a DLL from the memory onto another running executable. debugging the following module with the common methods wont work as the debugger is unable to locate the appropriate PDB files, not to mention make it aware that the DLL was actually loaded to the process. i managed to set it somehow working with windbg by: specifying the debugger where the module is located in the memory and its length using .reload [DLLLocationInMemory]=0x10000000,[DllSizeInMemory

Can't inspect variables while debugging CLI project referencing .Net Standard Lib

こ雲淡風輕ζ 提交于 2019-12-11 02:08:27
问题 We are facing the same issue as this question asked on the visual studio community by Laurent: LINK. Problem: If we try to debug the C++/CLI project, all variables defined in .Net Standard library inspection fails with the message : Unable to resolve reference to type 'System::ValueType' in assembly 'System.Runtime'. When the project is compiled below warning is displayed: warning C4691: 'System::Object': type referenced was expected in unreferenced assembly 'netstandard', type defined in

What can be the reasons for JavaScript breakpoint is not hit?

跟風遠走 提交于 2019-12-11 01:20:06
问题 I set a breakpoint in a script block of a razor view. VS2012 attaches to IE but breakpoint has yellow triangle with exclamation mark saying: The breakpoint will not currently be hit. The code in the document is not loaded. Script debugging is enabled in Internet Options of IE. Have no idea what is wrong. 回答1: I faced this problem too. After trying many codes and things take from different posts in Stackoverflow and others websites, they have not solve my problem. When i have take a look for

Visual Studio 2012 Debugger suddenly stops while debugging Azure project

帅比萌擦擦* 提交于 2019-12-11 01:18:50
问题 When I'm debugging my Azure project (1 Web + 1 Worker Role instance) locally, the debugger often just stops and the role instances are restarting. I have no clue why this is happening, there are no uncaught exceptions and if I run the project without setting breakpoint everything works just fine. However when I set breakpoints and move through the code using Step Over / Step into, the debugger just stops at random intervals. Does anyone know what is causing this / where I can find additional

Unable to run debug build of application

末鹿安然 提交于 2019-12-10 19:13:09
问题 Visual Studio 2005, SP1 with Vista/Win7 update. The PC originally had VS 2010 installed but, since the rest of the team uses 2005, well, when in Rome... Initially, I installed 2005 and the updates and tried to build/run. Build ran fine, running (in debug mode) failed. So I uninstalled the VS updates, removed all versions of VS and associated components and reinstalled VS2005 with the SP and Win7 update. Same issue running in debug mode. I get a dialog telling me that the application config is

How to see local and auto variables values on remote debugging

匆匆过客 提交于 2019-12-10 18:54:59
问题 sAs I wrote in the subject I can't see that values of variables in remote debug mode. The window of auto and locals are empty during debug. Any ideas why? and how can I solve it? When I'm trying to add a watch on a variable I get: Internal error in the expression evaluator 回答1: Its a bug in visual studio 2012 . Apparently it works with vs 2010 . VS 2012 Update 2 fixed it but update 3 broke it again according to some posts on connect http://connect.microsoft.com/VisualStudio/feedback/details