visual-studio-debugging

Debugging a library of an external program? (Visual Studio 2010)

最后都变了- 提交于 2019-12-10 18:45:46
问题 This is a question towards programmers who have experience with using Visual Studio 2010 for debugging external applications. Currently, I'm developping an add-on for a program made by people I work for. In order to make this add-on work with the external program, I have to place the .dll file in a certain folder, specified by the external program. I have my build settings configurated so the .dll file is copied automatically. I also copy the .pdb file to enable debugging options. Since this

Manual stop debugging with backgroundworker

余生长醉 提交于 2019-12-10 17:25:38
问题 I am writing a WPF C# project with use of BackgroundWorker (a popup window with progress bar). I start debugging (F5 key) to check my program. After the BackgroundWorker is completed and the popup window is closed, closing the MainWindow does not automatically stop the debugging process. I have to manually hit Shift+F5 to stop the debugging. I thought BackgroundWorker should have taken care of the Thread automatically. But anyhow, I still call backgroundworker.Dispose() and backgroundworker

instanciated local variable shows as null in debugging inspector

本小妞迷上赌 提交于 2019-12-10 17:14:09
问题 I'm encountering a strange issue when debugging some async code in visual studio: As you can see I have a for loop that iterates over an IEnumerable with 9 instantiated objects in it (terrible naming I know, Not my DB...) i is 0 in this case, so elementAt should put the first item in the betaling variable. This happens correctly, and this code executes flawlessly, but in the debugger it shows as null: When I continue debugging, everything is normal, the betaling variable is used in multiple

How to debug as NT AUTHORITY\SYSTEM in Visual Studio?

可紊 提交于 2019-12-10 16:13:08
问题 I'm trying to debug as NT AUTHORITY\SYSTEM. I've tried to use the methods described in the following question: RunAs A different user when debugging in Visual Studio Yet, what credentials do I need to use in order to pass through authentication? 回答1: runas cannot start as System/Local Service/Network Service etc. But psexec -s can start a process as System. -s Run the remote process in the System account. 来源: https://stackoverflow.com/questions/21466060/how-to-debug-as-nt-authority-system-in

Visual Studio 2017 v15.5 Aspnet Core 2.0.3 fails to debug on IISExpress

有些话、适合烂在心里 提交于 2019-12-10 15:18:47
问题 After I recently updated my visual studio 2017 installation from 15.4.5 to 15.5 I have lost the ability to hit breakpoints in my aspnet core 2.0 applications. The configuration is in debug any cpu. While this works fine on kestrel (Debugging as a consoile app), on IISExpress it does not hit my breakpoints. As a sidenote the weird thing here is it seems to have the debug symbols loaded on runtime (the breakpoint is correctly highlighted) and no warning. Environment: Runtime Environment: OS

“Condition for a breakpoint failed to execute… 'variable' not declared. It may be inaccessible…” Why?

你离开我真会死。 提交于 2019-12-10 14:58:34
问题 Related questions: Unable to debug managed code using visual studio 2013 ("Cannot evaluate expression" error - am using debug build) (Note that VS 2012 works) VS2013 Debugger + Entity Framework: "runtime has refused to evaluate the expression", crashes I am facing a problem with conditional breakpoints in Visual Studio 2013 Professional. The breakpoint condition is referring to a local variable ( tagString ), which is declared and initialized in the line of code immediately preceding the

Make Visual Studio break on User (std::exception) Exceptions?

纵饮孤独 提交于 2019-12-10 14:29:11
问题 My code throws unhandled exceptions, but the debugger in Visual Studio only breaks on those thrown by the system. For example, below the return value of getaddrinfo is not zero and my exception should be thrown first - in fact, if I place a breakpoint at line 171, it is hit - yet the debugger only breaks on the call to socket . I know I have to add my own types explicitly, or else check All C++ Exceptions not in this list, in Exception Settings , but this is a std::exception I am throwing,

Cannot start debugger on Visual Studio 2010 (F5) However, ' attach to process' does work (slow). How to fix?

浪子不回头ぞ 提交于 2019-12-10 14:26:47
问题 The environment: Clean (new) install of Windows 7 64bit. Clean (new) install of Visual Studio 2010 Professional (10.0.30319.1). Windows Update is up to date. The problem: I cannot start the debugger on Visual Studio 2010 (hit F5): ' Unable to start debugging on the web server. Unable to connect to the web server. Verify that the web server is running and that incomming HTTP requests are not blocked by a firewall. ' However, ' attach to process ' (what I usually do) does work, but it is

VS 2012 debugging Unexpected symbol reader error while processing <file.exe>

旧巷老猫 提交于 2019-12-10 13:16:10
问题 I have a problem with debugging my program in Visual Studio 2012 - when I try to debug the code by inserting some breakpoints, they seem not to work - when I hover on them a message pops up The breakpoint will not currently be hit. Unexpected symbol reader error while processing <file.exe> I tried searching for similar problems in the internet but I haven't found any solutions I'd appreciate any help, thanks! 回答1: [VS 2012] Ok I got the answer that fixed this problem, so I'll post this here

Unable to start debugging on the web server. Unable to connect to the webserver

不羁岁月 提交于 2019-12-10 12:32:21
问题 I am running Visual Studio 2008, IIS 7.5 on Windows 7 x32. I am able to run the ASP.NET web site in IIS 7.5 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Unable to connect to the webserver. Verify that the web server is running and that incoming http requests are not blocked by a firewall.. 回答1: In VS , right click on your web project --> Properties Go to the Web tab. Make sure the appropriate radio button is selected (Use VS