Viewing dynamically alloocated null-terminated strings with Visual Studio's debugger
问题 Is there any way to change the default behavior of Visual Studio's debugger such that when hovering over a null-terminated, dynamically allocated character array (C++), it will display the full content of the string, rather than the first character only? I should mention that I am using Visual Studio 2010. If there is a way to achieve this in VS2012 only though, I would be interested to know that as well! 回答1: There's a useful link for visual studio, C++ Debugger Tips: To interpret a pointer