visual-studio-debugging

Apparent IO.Ports.SerialPort Flaw in C# or Possible Hardware Flaw

穿精又带淫゛_ 提交于 2019-12-11 19:29:48
问题 Please forgive me as this is going to be quite a long post. I'm currently using the SerialPort class in C# to write an application to communicate with a device called a Fluke 5500A. I've, in the past, had many problems as the amount of time the device takes to issue a command and return whatever it outputs in unpredictable at best. I asked a question yesterday here: System.Timers.Timer Usage The answer to the question is wonderful and most of the time appears to work perfectly. As an example

DirectX 11: Model not rendering from Model class

好久不见. 提交于 2019-12-11 18:08:01
问题 Ok! Here goes. I've updated my code. However, after hours of debugging seemingly perfect code, I can't spot the problem. I've set up multiple breakpoints around the Vertex and Index buffer creation, and the class draw call. I've created a temporary vtest struct for the purposes of testing. It carries the definition. struct vtest{ XMFLOAT3 Vertex; XMFLOAT4 Color; }; Linked to a proper IA abstraction: D3D11_INPUT_ELEMENT_DESC InputElementDesc[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT,

How to implement IDkmCustomVisualizer for managed target

半腔热情 提交于 2019-12-11 15:51:09
问题 So far I was able to run and this sample that implement this interface and using it for debug C++ apps. I try to implement IDkmCustomVisualizer in C#, aiming use it to debug CLR apps. Is this possible ? I retrofitted Hello Wrold sample, where added class that implement IDkmCustomVisualizer and changed HelloWorld.vsdconfigxml. But nothing works, debugger in experimental instance do not use this implementation. Tried with VS 2017 and 2019 Community. my IDkmCustomVisualizer implementation:

VS2013 debugger can not find Qt sources

≡放荡痞女 提交于 2019-12-11 11:52:22
问题 I am using Visual Studio 2013 for building Qt5.3.1 projects. I use the express version so I don't use the VS plugin. My .vcxproj files a generated from .pro files using build scripts and qmake. I installed Qt 5.3.1 with the default offline installation package that can be downloaded from the project pages. During installation I enabled sources to be installed (which are not installed by default). When debugging my projects I sometimes try to step into Qt library code. This unfortunately does

Stepping through Visual Studio Debugger with F10/F11 behaves like F5 (Run)

若如初见. 提交于 2019-12-11 11:39:51
问题 I have been running into a strange Visual Studio (2010) issue when debugging the a solution and I’m hoping someone has some thoughts on how to fix this issue. At times, during debugging when hitting a break point and start stepping through (F10 or F11) the behavior seen is that of F5 (run), immediately jumping out of the debugger with the page rendered. If a break point is set it’ll run to that but from there it will run to end (or next break point). The only thing I’ve found to stop this

My StartDoc() fails in Windows 7, runs well in Windows XP

风格不统一 提交于 2019-12-11 11:22:33
问题 My code is in 32 bit Visual C++ 2010. It is the usual print-using-default-printer one, which goes like this (this is the exact code minus error handlers): // Get the length of the printer name. GetDefaultPrinter(NULL, &size); lpcPrinterName = new char[size]; // Get the printer name. if(!GetDefaultPrinter(lpcPrinterName, &size)) { // handle error return false; } // Get a device context for the printer. hdcPrint = CreateDC(NULL, lpcPrinterName, NULL, NULL); // get printer parameters

DOM Explorer not working in VS2015 RC

我怕爱的太早我们不能终老 提交于 2019-12-11 10:55:48
问题 The DOM Explorer is not working for me in VS 2015 RC. (Version 14.0.22823.1) It looks like this: (just one big button) I have gone through the options/settings but nothing seems to fix the issue. Have anybody experienced the same issue/problem or maybe an idea how to fix it? 回答1: Update Internet Explorer. I can't find system requirements for the DOM Explorer anywhere, but I suspect it requires IE 11. I had this same issue (with IE 10) until I ran Windows Update and restored the hidden IE 11

In Visual Studio, why can I not debug a referenced class library?

青春壹個敷衍的年華 提交于 2019-12-11 10:09:05
问题 I know this probably sounds easy and that a lot of people have asked the same or similar questions. I have spent many hours on this, and none of the solutions work for me. I have a solution that has two projects: Project 1 is a Windows forms application that depends on Project 2. Project 2 is a class library. I have added a reference to Project 2 in Project 1. I selected Add Reference --> Projects, then checked the box for Project 2. I set Project 1 as the startup project. I have the profile

Debugging with VS2013 on a program with no optimization but still there is no symbol in the current context for local variables

和自甴很熟 提交于 2019-12-11 08:43:06
问题 I am trying to debug Python2.7 to understand more about how python works. when I trying to debug ceval.c at line 4399, I noticed I cant see value of arg in my IDE, I checked optimization is disabled and /DEBUG option is on. I looked disassembly and I do see arg have a value, code was executed. I tried to debug in both VS2013 and VS2017, both are the same even PDB is loaded I tried with WinDbg using dv command ,it's still unable to see any local variables my compile command is : /GS /analyze-

Visual Studio 2015 debugger stops for a handled exception of a DebuggerHidden function

别来无恙 提交于 2019-12-11 06:37:48
问题 I want the debugger to stop when: A handled or unhandled exception occurs. An unhandled exception occur in a function that has a DebuggerStepThrough or DebuggerHidden attibute. Debugger should stop where this function is being called. There is no problem so far, I could able to make Visual Studio 2015 work like that. However when an handled exception occurs inside a function that has a DebuggerStepThrough or DebuggerHidden attibute, the debugger stops where this function is being called. I