visual-studio-debugging

Visual Studio 2012 crashes every time I try to debug with error CLR20r3

假如想象 提交于 2019-12-03 15:39:31
问题 Every time I try to debug one of my apps I get the below error message. Anyone have any ideas? I tried running Visual Studio in safe mode but I get the same thing. I also tried to repair the install and completely reinstall it with no luck :(. The full Problem Signature is this: Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: devenv.exe Problem Signature 02: 11.0.50727.1 Problem Signature 03: 5011ecaa Problem Signature 04: Microsoft.IntelliTrace.Package.11.0.0 Problem

Name does not exist in the namespace

我只是一个虾纸丫 提交于 2019-12-03 15:16:04
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-compatibility/2006" mc:Ignorable="d" FontSize="22" > <SplitView x:Name="MySplitView" Grid.Row="1"

Skip STL Code when debugging C++ Code in Visual Studio 2012?

五迷三道 提交于 2019-12-03 15:04:19
问题 Is it possible to skip STL Code when using the C++ debugger (native, x64) in Visual Studio 2012? Quite often when debugging C++ code I step into STL code. I expect that the STL code provided by Microsoft is correct - I am not interested in debugging it - I am only interested in debugging my own (self-written) code. For instacne when setting a break point at this function: foo(std::make_shared<int>(6)); where foo is defined as: void foo(std::shared_ptr<int> x) { // do something } I do not want

Visual Studio 2015 - Prevent debugger stepping into STL code (specfically std::function) but still step into any usercode the stl calls to

被刻印的时光 ゝ 提交于 2019-12-03 14:41:03
I am trying to make debugging std::function-heavy code less of a nightmare. What I want to happen is to be able to do is step directly into the lambda body in this example: std::function<void(void)> lam_dostuff = []() { printf("stuff has been done\n"); }; lam_dostuff(); I did some research and found out that the C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Packages\Debugger\Visualizers\default.natstepfilter file contains step-into overrides. I can add the rule <Function><Name>std::.*</Name><Action>NoStepInto</Action></Function> , and this does prevent me from stepping into any

_CrtCheckMemory usage example

◇◆丶佛笑我妖孽 提交于 2019-12-03 13:36:28
问题 I'm trying to understand how to use _CrtCheckMemory to track down heap corruption in a Windows application I'm working on. I can't seem to get it to return false . Here's my test code: int* test = new int[1]; for(int i = 0; i < 100; i++){ test[i] = 1; } assert( _CrtCheckMemory( ) ); In the code above, _CrtCheckMemory( ) returns true. I'm running in Debug mode. What else do I need to do in order to get a simple example of _CrtCheckMemory flagging a problem? 回答1: An extra step is required, you

ASP.NET and Android Wireless debug without internet

China☆狼群 提交于 2019-12-03 13:32:53
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 seem to find one that works. I have explored trying to tether the device or setting up my laptop as a

Cannot See Values While Debugging ASP.NET Core

狂风中的少年 提交于 2019-12-03 12:33:56
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. 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 2015 Update 2 RC fixed the issue for me, but unfortunately not for the OP. This behavior happens with 1.0.0

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

佐手、 提交于 2019-12-03 12:02:38
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 site and apppool and reconfigured from scratch. AppPool is set to allow 32-bit applications All to no

Is it possible to watch the value of a memory location using the Visual Studio Debugger's Watch window?

烂漫一生 提交于 2019-12-03 06:46:05
问题 Yes, I know there are four Memory windows, but I much prefer the display of a single value in the watch window, and I'm wondering if it's possible to specify a memory location to watch in the watch window. Putting the address by itself just evaluates to the address in hex. 回答1: If you want to watch a particular memory location then you need to tell the debugger the type of the object that lives in that location. Instead of just 0x00aabbcc use (SomeType*)0x00aabbcc . Once the debugger knows

Why won't Visual Studio Debugger enumerate a BitArray and show me the results?

自作多情 提交于 2019-12-03 05:56:11
For the following line of C# code: BitArray bitty = new BitArray(new[] {false, false, true, false}); If I evaluate "bitty" in the Watch window, I don't see the members of the collection. If I evaluate "bitty, results", which is supposed to enumerate the IEnumerable and show the results, I get the message "Only Enumerable types can have Results View", even though a BitArray IS an IEnumerable. Why does the debugger do this? CLARIFICAITON: I'm asking what is happening inside the VS Debugger Expression Evaluator, NOT asking how to view a BitArray in the debugger.. JaredPar The results view only