Showing results for Debugging and Diagnostics - Visual Studio Blog

Sep 9, 2024
0

Supercharge C++ Debugging with AI-Generated breakpoint expressions

Harshada Hole
Harshada Hole

Have you ever spent hours debugging your C++ code, struggling to set up the right conditional breakpoint or tracepoint? Or wished for a smarter way to obtain detailed runtime information without manually crafting complex expressions? You're in luck! With Visual Studio 2022, the latest GitHub Copilot feature now offers AI-generated expressions for b...

Debugging and DiagnosticsBreakpoints
Sep 5, 2024
24

Easily dock and float tool windows

Mads Kristensen
Mads Kristensen

You’re in the middle of a debugging session, attempting to chase down that one issue that is causing you trouble. In the heat of the moment, you grab a tool window and drag it out of its docked position – purely by accident. You didn’t mean to drag it, but sometimes when you move the mouse around, things like that happen. Your full attention now sh...

Debugging and DiagnosticsVisual Studio 2022Keyboard Shortcuts
Aug 20, 2024
4

New debugging and diagnostic features

Harshada Hole
Harshada Hole

Debugging and diagnostics are vital skills for any developer, but they can also be difficult and time-consuming to get proficient . That's why we've added some fantastic new features and enhancements to Visual Studio 2022 v17.11 that will help you find and resolve bugs faster and easier than ever before. Here are some of the highlights. Download th...

Debugging and DiagnosticsVisual Studio 2022Debugging
Aug 6, 2024
8

Introducing the revamped Attach to Process experience

Carlos Guerra Vazquez
Carlos Guerra Vazquez

One of the most powerful and frequently used features of Visual Studio is the Attach to Process dialog, which enables you to debug processes running on your machine or on a remote machine. For anything you could develop using Visual Studio, the Attach to Process dialog allows you to quickly attach the debugger to the processes you want to inspect a...

Debugging and DiagnosticsVisual Studio 2022UI Refresh
Jun 18, 2024
9

Easily navigate code delegates while debugging

Mark Downie
Mark Downie

Delegates are everywhere in modern code; a delegate is a type that represents references to methods with a particular parameter list and return type. Developers use delegates to pass methods as arguments to other methods. One example you may be familiar with is with event handlers. Handlers are methods you can invoke through delegates. Delegates re...

Debugging and Diagnostics
Jan 31, 2024
4
5

In the Debugger’s Spotlight: A Year in Review

Harshada Hole
Harshada Hole

Reflecting on the past year's journey, our team was on a mission to enhance debugging tools, ensuring they became more efficient and user-friendly. We dedicated our efforts to boosting inner-loop productivity, making external source debugging more seamless, improving overall performance, and optimizing memory analysis. And, of course, we were eager...

Debugging and DiagnosticsVisual Studio 2022Developer Productivity
Dec 15, 2023
13
5

Unlocking the Secrets of Managed Memory: Dive into Event Handler Leak Insights!

Massimo Giusti
Massimo Giusti

Event handler leaks have been around for a long time, and they are one of the peskiest issues WPF (Windows Presentation Foundation) developers regularly deal with. You might be thinking: What makes event handler leaks so important? Event handler leaks are easy to cause, all it takes is to forget to unsubscribe to an event. Additionally, they are qu...

Debugging and DiagnosticsVisual Studio 2022Productivity
Sep 25, 2023
11
5

A unit of profiling makes the allocations go away

Nik Karpinsky
Nik Karpinsky

In Visual Studio 17.8 Preview 2 we have updated unit test profiling, allowing you to use any of the available tools in the performance profiler – not just the instrumentation tool. With this change, it’s easy to quickly profile small units of work in isolation, make changes, and then remeasure and validate the impact of the change. Assuming you hav...

Debugging and DiagnosticsVisual Studio 2022Developer Productivity
Sep 6, 2023
5
6

Elevating Debugging with Auto-decompilation and External Sources

Harshada Hole
Harshada Hole

Visual Studio has been supporting external sources debugging and decompilation for some time now. However, with the release of Visual Studio 17.7, the debugger took a significant leap forward by introducing Auto-decompilation for .NET libraries making the external code debugging in Visual Studio much more streamlined and effortless. Its integrated ...

Debugging and DiagnosticsVisual Studio 2022Developer Productivity
Jul 25, 2023
4
6

Rock Your Debugging Game: Parallel Stack Window Tips You Need to Know!

Harshada Hole
Harshada Hole

In Visual Studio 2022 17.6 and 17.7 we added a ton of new features in Parallel Stack Window that can take your multithreaded debugging to the next level. But what can the Parallel Stack Window do for you? The answer is simple - it offers valuable insights into how your code functions in multithreaded or parallel or async environments. Understand...

Debugging and DiagnosticsVisual Studio 2022Developer Productivity