visual-studio-debugging

What goes in the “Non-Public members” node in Visual Studio's Watch window?

我的梦境 提交于 2020-01-13 18:01:28
问题 I assumed that all Non-Public (ie, private, protected, internal, and internal protected) members of C# objects go under " Non-Public Members " when I look at objects in Visual Studio's Watch Window. But then, I noticed an anamoly with this code: class HashDerived : System.Security.Cryptography.HashAlgorithm { ... } HashAlgorithm hash1 = new HashDerived(); HashAlgorithm hash2 = new System.Security.Cryptography.SHA1Cng(); hash1 's "Non-Public Members" looks like this: whereas hash2 's "Non

How to debug Cucumber in Visual Studio Code (VSCode)?

人盡茶涼 提交于 2020-01-12 18:35:43
问题 I was trying to debug Cucumber scenarios in Visual Studio code and made below changes in the launch.json . { "name": "e2e", "type": "node", "request": "launch", "program": "${workspaceRoot}\\node_modules\\.bin\\cucumber-js", "stopOnEntry": false, "args": ["--no-timeouts", "--colors"], "cwd": "${workspaceRoot}", "runtimeExecutable": null, "outFiles": [ "${workspaceRoot}\\features\\step_definitions\\*.js" ] }, However, I am not able run a debug session using the above configuration. The step

Can't start debugger in VS2012 RC

断了今生、忘了曾经 提交于 2020-01-10 20:23:27
问题 Configuration: Windows 7, 64 bit Microsoft Visual Studio Professional 2012 RC Version 11.0.50522.1 RCREL Running VS in administrator mode The VS solution contains a web application, with target: .NET Framework 4. When I press F5, the solution builds... and nothing else happens. Happens with both IIS or the VS Dev Server. Happens with Platform Target of "Any CPU" or "x86" If instead, I use the Debug / Attach to Process... menu, after a few seconds, I get: "Debugger is Busy" - Debugger is

How to set “Break on All Exceptions”, from a Package

Deadly 提交于 2020-01-10 08:50:42
问题 I want to make an extension to quickly toggle breaking on CLR exceptions in debugger. I have made tried several approaches, neither of which is satisfactory. Here is what I have already tried: ExceptionSettings.SetBreakWhenThrown (MSDN) This is extremely slow (see this Connect issue). I have tried approaches from question "Toggle “Break when an exception is thrown.” using macro or keyboard shortcut" and neither seem to work reliably: in most cases only top level checkbox gets set, and it does

How to set “Break on All Exceptions”, from a Package

左心房为你撑大大i 提交于 2020-01-10 08:50:36
问题 I want to make an extension to quickly toggle breaking on CLR exceptions in debugger. I have made tried several approaches, neither of which is satisfactory. Here is what I have already tried: ExceptionSettings.SetBreakWhenThrown (MSDN) This is extremely slow (see this Connect issue). I have tried approaches from question "Toggle “Break when an exception is thrown.” using macro or keyboard shortcut" and neither seem to work reliably: in most cases only top level checkbox gets set, and it does

C#/C(managed2unamanged)Visual studio 2015 update 2 , .NetCore Console App 1.0 , not able to debug Native Code Debugging

天大地大妈咪最大 提交于 2020-01-07 07:43:08
问题 I am using a .Net Core Console App using Visual Studio 2015 update 2 on windows machine. I am using a package "pack1"(managed code) in this console application which in turn calls native / c code dll. I am able to step into pack1 code, but i am not able to step into my native code. Tried giving symbol path to native code pdb file , enabled native and managed code compatibility option,tried putting breakpoint into the native c source code directly, also tried to step into c code from managed

SQL Server debug Stored Procedure from .NET code

心已入冬 提交于 2020-01-07 05:14:08
问题 I'm wondering if there's a way to debug a stored procedure at the time it's called from .NET code? What are my possibilities? I'm using Visual Studio 2013 Community Edition and SQL Server 2014 回答1: I have managed to figure it out myself. It's quite similar to what you can find in VS 2010. I had to import database as a project to my solution. Turn on SQL Debugging in my application project properties. Re-open my project. Connect to my SQL Database through SQL Server Object Explorer. Right

Debugging MS Exchange 2007 Transport Agent

半城伤御伤魂 提交于 2020-01-07 04:43:33
问题 I have source code for a transport agent that I have installed on MS Exchange 2007 written in C#. I need to debug it using VS, which I think involves 'attaching' the debugger to the process 'MSExchangeTransport.exe'. I do this, and put in breakpoints as the first statement in the OnSubmittedMessageHandler(). I know that this handler is being called because the agent works as expected and the code in the handler carrying out it's duties. However I am not getting any debugging information in

Microsoft error while synchronizing call from IIS?

…衆ロ難τιáo~ 提交于 2020-01-06 08:15:14
问题 I get the below error *** Retrieving the COM class factory for component with CLSID {046C184F-2188-4C99-A95A-9C0DCDC19050} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). *** while using the Microsoft Sync Services on execute of the below statement . I get the error only when I run from the IIS that is http;//localhost/S71/default.aspx etc. But if I run by pressing F5 from my visual studio it works fine . All other

IntellitraceFile throwing strange error

帅比萌擦擦* 提交于 2020-01-06 04:41:08
问题 Can someone explain this error? (it showed up after enabling tracing in the collection plan.) Test method ExecuteTaskTest threw exception: System.ArgumentException: An item with the same key has already been added. System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) Microsoft.VisualStudio.IntelliTrace.IntelliTraceProcess.AddModule(IntelliTraceModule module) Microsoft.VisualStudio.IntelliTrace