{"id":37106,"date":"2026-11-12T16:49:13","date_gmt":"2026-11-12T16:49:13","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=37106"},"modified":"2026-11-12T16:49:13","modified_gmt":"2026-11-12T16:49:13","slug":"c-dynamic-debugging-is-now-generally-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/c-dynamic-debugging-is-now-generally-available\/","title":{"rendered":"C++ Dynamic Debugging is now generally available"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>We are excited to announce that <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/cpp-dynamic-debugging-full-debuggability-for-optimized-builds\/\">C++ Dynamic Debugging<\/a> is now generally available in\u00a0all <strong>Visual Studio 2026 channels<\/strong> and the\u00a0<strong>Microsoft C++ (MSVC) Build Tools version 14.52<\/strong>.<\/p>\n<p>In the traditional workflow for games or large applications, switching to a debug build gives you access to debug symbols at the expense of performance. In contrast, when you debug optimized or release builds, you\u2019ll often encounter variables that are \u201coptimized away\u201d and find it difficult to step reliably through the code you want to inspect.<\/p>\n<p>With C++ Dynamic Debugging, you get the best of both worlds. You can inspect local variables, step through your source line by line, and step into inlined functions. The rest of your application stays optimized, so you can keep the runtime performance you need to reach and investigate a problem.<\/p>\n<p>After turning on the feature and rebuilding your application, Dynamic Debugging will deoptimize functions for you when setting a breakpoint or stepping into a function. You don&#8217;t need to stop, add #pragma optimize, rebuild, and reproduce the issue again just to inspect that code. For large games and performance-sensitive applications, that means less time preparing to debug and more time investigating the issue.<\/p>\n<p><figure id=\"attachment_35468\" aria-labelledby=\"figcaption_attachment_35468\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/05\/image-before.png\"><img decoding=\"async\" class=\"wp-image-35468 size-full\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/05\/image-before.png\" alt=\"Image before\" width=\"481\" height=\"301\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/05\/image-before.png 481w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/05\/image-before-300x188.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/a><figcaption id=\"figcaption_attachment_35468\" class=\"wp-caption-text\">Before (Optimized)<\/figcaption><\/figure><\/p>\n<p><figure id=\"attachment_35232\" aria-labelledby=\"figcaption_attachment_35232\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/03\/after.png\"><img decoding=\"async\" class=\"size-full wp-image-35232\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/03\/after.png\" alt=\"Image after\" width=\"508\" height=\"267\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/03\/after.png 508w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/03\/after-300x158.png 300w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/a><figcaption id=\"figcaption_attachment_35232\" class=\"wp-caption-text\">After (With C++ Dynamic Debugging)<\/figcaption><\/figure><\/p>\n<h2>Customer Feedback<\/h2>\n<p>From game development to virtual reality, Microsoft teams have already been using C++ Dynamic Debugging to make optimized code easier to debug. Here&#8217;s what they&#8217;re saying:<\/p>\n<blockquote><p>&#8220;Dynamic Debugging is a game changer for C++ development. It lets me work in the optimized builds I actually need for large game codebases, while still being able to deoptimize and inspect code and runtime state when it matters. It removes a longstanding tradeoff between realistic runtime performance and a productive debugging experience.&#8221;<\/p>\n<p>Michael Buschbeck &#8211; Principal Software Engineer, Microsoft Havok<\/p>\n<p>&#8220;Performance is critical when developing virtual reality applications, so my team builds with optimizations on. Dynamic Debugging lets us debug that optimized code as if it were unoptimized. It&#8217;s so seamless you forget how much it&#8217;s helping.&#8221;<\/p>\n<p>Bryce Hutchings &#8211; Principal Software Engineer, Microsoft Cloud Streaming, Mixed Reality, and Graphics<\/p><\/blockquote>\n<h2>Try it in your project<\/h2>\n<p>For an x64 <strong>MSBuild<\/strong> C++ project, select your Release configuration then open project properties. Set <strong>Configuration Properties &gt; Advanced &gt; Use C++ Dynamic Debugging &gt; Yes<\/strong>. Then, rebuild your project to get started. This setting turns off Whole Program Optimization. For <strong>CMake<\/strong> and other build systems, you can pass the new <em>\/dynamicdeopt<\/em> switch to <em>cl.exe, lib.exe, and link.exe<\/em>.<\/p>\n<p>C++ Dynamic Debugging also works with\u00a0<strong>Unreal Engine 5.6 and later<\/strong>, with support in Unreal Build Tool and Unreal Build Accelerator. To try it, enable WindowsPlatform.bDynamicDebugging = true; in your target&#8217;s .Target.cs file and rebuild.<\/p>\n<p>In addition, Dynamic Debugging is compatible with distributed build systems like FastBuild and IncrediBuild.<\/p>\n<p>See the\u00a0<a href=\"https:\/\/aka.ms\/vcdd\">documentation<\/a>\u00a0for other build systems, requirements, and limitations.<\/p>\n<h2>Share your feedback<\/h2>\n<p>We would love to hear how C++ Dynamic Debugging works for your projects. Share your thoughts by commenting below, through\u00a0<strong>Help &gt; Send Feedback<\/strong>\u00a0in Visual Studio, on X (<a href=\"https:\/\/x.com\/visualc\">@VisualC<\/a>), or by email at\u00a0<a href=\"mailto:visualcpp@microsoft.com?subject=C%2B%2B%20Dynamic%20Debugging%20Feedback\">visualcpp@microsoft.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We are excited to announce that C++ Dynamic Debugging is now generally available in\u00a0all Visual Studio 2026 channels and the\u00a0Microsoft C++ (MSVC) Build Tools version 14.52. In the traditional workflow for games or large applications, switching to a debug build gives you access to debug symbols at the expense of performance. In contrast, when [&hellip;]<\/p>\n","protected":false},"author":39811,"featured_media":35243,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,3927],"tags":[140,331],"class_list":["post-37106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus","category-game-development","tag-c","tag-game-development"],"acf":[],"blog_post_summary":"<p>Introduction We are excited to announce that C++ Dynamic Debugging is now generally available in\u00a0all Visual Studio 2026 channels and the\u00a0Microsoft C++ (MSVC) Build Tools version 14.52. In the traditional workflow for games or large applications, switching to a debug build gives you access to debug symbols at the expense of performance. In contrast, when [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/37106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/39811"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=37106"}],"version-history":[{"count":1,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/37106\/revisions"}],"predecessor-version":[{"id":37110,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/37106\/revisions\/37110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35243"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=37106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=37106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=37106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}