Your Optimized Code Can Be Debugged - Heres How With MSVC C++ Dynamic Debugging - Eric Brumer @CppCon
Your Optimized Code Can Be Debugged - Heres How With MSVC C++ Dynamic Debugging - Eric Brumer  @CppCon
Uploaded February 2026 | Updated November 2026, 22 hours ago
https://cppcon.org​
---

Your Optimized Code Can Be Debugged - Here's How With MSVC C++ Dynamic Debugging - Eric Brumer - CppCon 2025
---

Debugging optimized code is challenging: game developers (among others) regularly feel the pain of "variable was optimized away" messages in a debugger, stepping being erratic, and breakpoints not getting hit. Existing solutions like -Og or -O1 may not provide the right tradeoff between performance & debuggability, and iterating with pragma optimize off causes toil just to inspect the value in a variable, or to make the call stack understandable.

Visual Studio 2022 17.14's C++ Dynamic Debugging solves this problem: with minimal compile-time overhead, your code runs as optimized but you perform debugging actions on unoptimized code. Code remains fast while also being as easy to debug.

This talk will cover effective use of this tooling to make the most out of debugging optimized code. It will also cover underlying technical details of C++ Dynamic Debugging which make the feature powerful, easy to use, and fast to build.

---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/MSVC_Cpp_Dynamic_Debugging.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Eric Brumer

Eric is an engineering manager on the Microsoft C++ Team, working on the compiler back-end.
---

CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Your Optimized Code Can Be Debugged - Heres How With MSVC C++ Dynamic Debugging - Eric BrumerLightning Talk: When Computers Cant Math - Floating Point Rounding Error ExplainedLightning Talk: Execution Policies: Not a Forward Progress Guarantee - Ruslan ArutyunyanPractical Reflection With C++26 - Barry Revzin - CppCon 2025Why you should put assertions in your declarations #cpp #programming #codingOptimize Automatic Differentiation Performance in C++ - Steve Bronder - CppCon 2025Debugging C++ Coroutines in GDB - Zartaj Majeed - CppCon 2025Lightning Talk: Chplx - Bridging Chapel and C++ for Enhanced Asynchronous Many-Task ProgrammingA Case-study in Rewriting a Legacy Gui Library for Real-time Audio Software in Modern C++ (Reprise)C++26 Features: The Most Important New UpdatesUpgrading Sea of Thieves From C++14 to C++20 Wasnt Easy Heres Why - Keith Stockdale - CppCon 2025Lightning Talk: Can `set_value` Actually Throw? - Robert Leahy - CppCon 2025
CppCon |

Your Optimized Code Can Be Debugged - Here's How With MSVC C++ Dynamic Debugging - Eric Brumer

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER