What's a quick way to trace the entry and exit of functions in a Visual Studio 2005 c++ multithreaded program?
问题 I have intermittent crashes occurring in my ActiveMQ libraries due to the way I'm using the activemq-cpp API. It'd be much easier to debug the issue if I could observe every function being called leading up to the crash. Are there any quick ways to trace the entry and exit of functions in a Visual Studio 2005 c++ multithreaded program? Thanks in advance! 回答1: Use a Tracer object. Something like this: class Tracer { public: Tracer(const char *functionName) : functionName_(functionName) { cout