visual-studio-debugging

OpenCV cvLoadImage() does not load images in visual studio debugger?

拜拜、爱过 提交于 2019-12-10 04:26:41
问题 I am trying to work out a simple hello world for OpenCV but am running out of ideas as to why it is not working. When I compile and run this code: #include <cv.h> #include <highgui.h> int main(int argc, char* argv[]) { IplImage* img = cvLoadImage( "myjpeg.jpg" ); cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE ); cvShowImage("MyJPG", img); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( "MyJPG" ); return 0; } I get a grey box about 200x200 instead of the indicated .jpg file. If I use a

Visual Studio C# 2010 Express Debug running Faster than Release

半世苍凉 提交于 2019-12-10 04:13:52
问题 I have a Windows Forms application with exactly 2 threads. These threads have ZERO interaction with each other, Ala the first thread runs without messing with the second thread. There is no Synchronization between them, as there is no need for that to be happening. The first thread deals with the UI of the application, changing colors and labels and has One timer running to catch some user input this timer fires every 200 milliseconds. The second Thread is more involved and runs through its

Edit & Continue doesn't work

ぃ、小莉子 提交于 2019-12-10 03:14:20
问题 I'm trying to get managed Edit & Continue working (in Visual Studio 2015 v14.0.25425.01 update 3) and it's giving me the dreaded dialog, " Changes are not allowed in the following cases: " Attached to a process that does not support Edit and Continue on attach. I'm using IISExpress v10.0.14358.1000, on Windows 10.0.10586, x64. I have 'Use the 64 bit version of IIS express for web sites and project' checked in Tools->Options. (although, i also get the same error with 32-bit iisexpress) all my

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

倖福魔咒の 提交于 2019-12-09 11:59:19
问题 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

Is it possible to break on thread exit with specific error code?

谁都会走 提交于 2019-12-09 09:33:53
问题 I was wondering if it was possible to configure visual studio 2008 debugger to stop execution when a thread exits with a precise error code (or at least any non-zero value). My app use a tremendous number of threads, so it's impossible to track them all manually. Is there a way to tell VS2008 to break when ANY thread in the program hits "exit(X);" (X being different from 0) and display source ? 回答1: Yes, set a breakpoint in the function _RtlExitUserThread@4 , and add a condition of *(int*)

Why do my breakpoints duplicate in Visual Studio?

帅比萌擦擦* 提交于 2019-12-09 02:51:29
问题 I recently started having problems with breakpoints in Visual Studio 2010. When I set a breakpoint and then start debugging, another breakpoint appears on some other line nearby. The screenshots below shows the editor after I set a breakpoint, as well as the breakpoints window: As soon as I start debugging, the breakpoint duplicates, as seen in the following screenshots: Why is this happening and how can I stop it? 回答1: It looks like there is a child breakpoint set up, as described in the

Visual Studio breakpoints not being hit

冷暖自知 提交于 2019-12-08 22:49:16
问题 I'm working with an ASP.NET MVC project that seems to be having some issues when attaching to the IIS process (w3wp.exe). I'm running the solution and IIS 8.5 on my own local machine so I wouldn't think that this has anything to do with our network. What's strange to me is that I'm able to hit the breakpoints on any other solution I debug locally. The issue I'm having exactly is that the breakpoints turn to red, hollow circles and never get hit. Usually the fix for this is a Clean/Rebuild of

'No disk in the Drive' error when debugging in Visual Studio

核能气质少年 提交于 2019-12-08 20:02:05
问题 Whenever I debug my program, I sometimes get several errors asking me to insert a disk into Drive E and Drive F. This seems to be something to do with VS looking for the source of Third Party components which were originally developed on these drives, for example If I keep pressing cancel, then my debugging session continues, but it is rather annoying. How do I stop this happening? Note, I am not trying to debug these libraries, and I have ' Enable Just my Code ' ticked under Options

Asp.Net Core: Debug -Attach to process is not working

别等时光非礼了梦想. 提交于 2019-12-08 19:14:01
问题 The way we are used to debug a running "IISExpress" process in .Net Framework is by attaching a process by the name "iisexpress.exe" in Visual Studio. But attaching the iisexpress process is not working in .Net core. It shows the message - "The breakpoint will not currently be hit. No symbols have been loaded for this document." 回答1: To debug a running iisexpress instance in .Net core, you will have to attach "dotnet.exe" process in Visual Studio. 回答2: In my case, using Asp.Net Core 2.2 with

pdb file not generated in visual studio 2015

Deadly 提交于 2019-12-08 19:01:38
问题 I am developing a application using C#-MVC with Entity framework(database first) VS 2015 I have created separate project for Data Layer Access . When I build this project, either DEBUG or RELASE mode, debug file not getting generated i.e. " .pdb " file. Due this unable to hit break point. In all project this file generated except Data Layer Access project Please let me know, how can I generate this .pdb file for project in my project? Thanks in advance! 回答1: (1)Like this document about how to