Re: I only want to see the stack trace in certain cases<p>(C++) One of my favorite middle grounds between console debugging and loading up the debugger is to output the actual stack walkback as a string of hex addresses in production code (on a conditional log level). This is relatively very cheap and avoids the entire cost of loading up the machinery to resolve the addresses to symbols in the critical path. It is assumed that you know what binary is running where and that you associate the stack walkback with the unique binary and thus can resolve the symbols out of band at a later date. (.. or have some handy automation that is notified and does it for you out-of-band and puts the results back into the central logging facility :))<p>At Bloomberg we do this using part of our infrastructure libraries and have wrapped up the logging-the-stack-as-hex part into a simple drop-in call: <a href="https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__balst__stacktraceutil.html#3.1.3" rel="nofollow">https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__balst__stacktraceutil...</a><p>All of the conditional logging machinery is pretty important as well, as it lets you maintain all of your detailed logging statements with the flexibility to configure however you wish at runtime in a production build while debugging. There&#x27;s many different solutions for this in the C++ world, but ours is here: <a href="https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__ball__log.html" rel="nofollow">https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__ball__log.html</a>  The rest of the components are all in that package: <a href="https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__ball.html" rel="nofollow">https:&#x2F;&#x2F;bloomberg.github.io&#x2F;bde&#x2F;group__ball.html</a>