Run To Click Debugging in Visual Studio 2017

You have many options when navigating through your code with the debugger in Visual Studio including setting breakpoints, stepping, and using Run to Cursor. In Visual Studio 2017 we have introduced Run to Click, a new way to more easily debug your code – point and click style. You no longer need to set temporary… Read more

Reattach To Process in Visual Studio 2017

Sometimes when developing an application you can’t simply F5 to start debugging the application. In these cases you can use Attach to Process to debug. Many times if you need to debug this way, you will often need to attach to the same application repeatedly. In Visual Studio 2017 we have introduced Reattach to Process… Read more

Debugging .NET Core on Unix over SSH

With the release of Visual Studio 2017 RC3 it is now possible to attach to .NET Core processes running on Linux over SSH. This blog post will explain how to set this up. Machine Setup On the Visual Studio computer, you need to install either the ‘ASP.NET and web development’ or the “.NET Core cross-platform… Read more

Announcing Code Search on Team Foundation Server 2017

Code Search is the most downloaded Team Services extension in the Marketplace! And it is now available on Team Foundation Server 2017! Code Search provides fast, flexible, and accurate search across your code in TFS. As your code base expands and is divided across multiple projects and repositories, finding what you need becomes increasingly difficult…. Read more

7 Ways to Look at the Values of Variables While Debugging in Visual Studio

When you are running your code and something is behaving unexpectedly, how do you find out what is going wrong? When I was in school the first way I learned how to debug a wonky application was by sticking “print()” statements all over the place, running my code, and looking back through the log of… Read more

How CPU Sampling Works

In this blog post, I’ll cover some of the basics of CPU Sampling, the method the Visual Studio profiler uses to capture CPU performance data in your applications. If you’re interested in performance profiling, we welcome any feedback you have and encourage you to help us build better performance tooling! What is sampling? In a… Read more

Using the New Exception Helper in Visual Studio 2017

Dealing with exceptions is a common developer problem no matter your technology or level of expertise. It can be a frustrating experience figuring out why exceptions are causing problems in your code. When you are debugging an exception in Visual Studio, we want to lessen that frustration by providing you with relevant exception information to… Read more

Break on Exceptions Thrown only from Specific Modules in Visual Studio 2017

In Visual Studio 2015 we introduced the new Exception Settings window which provides you a quick way to configure the debugger to break when exceptions are thrown. As part of that window revamp, we heard that simply filtering by exception type is not always good enough, you need finer grained control over when the debugger… Read more

Updates for Debugging Installed App Packages in Visual Studio 2015 Update 2

In Visual Studio 2015 Update 2, we added support to the Debug Installed App Package dialog for: Starting an installed application on Xbox, HoloLens, and IoT (Internet of Things) devices Attaching to processes already running on IoT devices Sorting the apps based on “Running” or “Not Running” state Note that attach to process is not currently supported… Read more

.NET Core Debugging in VS Code

The C# extension for Visual Studio Code offers powerful editing and debugging support for .NET Core applications on Windows, Mac, and Linux, including: Line by line code stepping Breakpoints (including conditional and function breakpoints) Variable inspection Multi-threaded debugging support Call Stacks Debug console window Getting started To get started you will need to do a… Read more