How to do not step into system and library source files during debug
-
Hello people, I've been searching this forum, Google and Visual Studio's help but didn't find anything related. I'm developing in Visual Studio C++ and during debug process when stepping into one function which uses a "wstring" type variable, the VC++ debugger always steps into "xstring" system source file before. This is annoying since I don't need to debug this file. I could find an option in "Debug Source Files" property of the Solution called "Do not look for these source files" and added the string "$(VCInstallDir)crt\src\xstring" but it didn't work at all. Does anyone have a clue? Thanks Julián
-
Hello people, I've been searching this forum, Google and Visual Studio's help but didn't find anything related. I'm developing in Visual Studio C++ and during debug process when stepping into one function which uses a "wstring" type variable, the VC++ debugger always steps into "xstring" system source file before. This is annoying since I don't need to debug this file. I could find an option in "Debug Source Files" property of the Solution called "Do not look for these source files" and added the string "$(VCInstallDir)crt\src\xstring" but it didn't work at all. Does anyone have a clue? Thanks Julián
Hi, which version of Visual Studio do you use? MS introduced a feature called "Just My Code" with VS2005 which does exactly what you want. If it is set just your code is debugged and system code is ignored. the catch is that the setting just works for managed code... :( afaik there is no such setting for unmanaged code. How to: Step Into Just My Code[^]
cheers! mykel
OMM: "Let us be thankful we have an occupation to fill. Work hard, increase production, prevent accidents and be happy."
-
Hi, which version of Visual Studio do you use? MS introduced a feature called "Just My Code" with VS2005 which does exactly what you want. If it is set just your code is debugged and system code is ignored. the catch is that the setting just works for managed code... :( afaik there is no such setting for unmanaged code. How to: Step Into Just My Code[^]
cheers! mykel
OMM: "Let us be thankful we have an occupation to fill. Work hard, increase production, prevent accidents and be happy."
Ohh, sorry. I forgot to mention the Visual Studio version I am using: VS2008. I've already tried to use the "Just My Code" feature, but as you've said, it just works for managed code and I'm programming in pure C++ unmanaged. Thanks anyways! Julian