TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Monitor variables in functions in C++ with Visual Studio extension

2 pointsby donadigoover 1 year ago

1 comment

donadigoover 1 year ago
Hello HN, for about 6 months I&#x27;ve been developing a Visual Studio extension that makes it easier to debug &amp; inspect dynamic C++ code that changes state e.g every frame. The newest feature I added to the extension is showing real-time changes alongside each line. This works kind of like a global, immediate watch, but without any breakpoints - this is really useful in game development where you&#x27;d like to track variables that change state all the time.<p>The feature works by setting the cursor inside a function, and the extension will start showing you the code paths that are executed and what local variables are changing in it. You can also use it as a function recorder with no breakpoints - just set the cursor in the function, execute an action that calls the function and you&#x27;ll be able to trace everything that the function did.<p>Here&#x27;s a demo of the feature: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=5bfUWJYEQCw" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=5bfUWJYEQCw</a><p>Marketplace: <a href="https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=donadigo.d0" rel="nofollow">https:&#x2F;&#x2F;marketplace.visualstudio.com&#x2F;items?itemName=donadigo...</a> (note: this is a paid extension).