Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody,

I come across the following problem :
I have included some source files from a different folder in my project ( at Project Properties-> VC++ directories -> Include -> My external folder ) and my code crashes in a function from those source files. My question is : how can I Step Into those source files?

Thanks in advance,
Tamash
Posted
Comments
Sergey Alexandrovich Kryukov 25-Feb-11 2:55am    
Why not? What do you observe?
--SA

Open the source file in the external folder in the editor - it will appear in the list of files in the Solution Explorer. Then put a breakpoint at the line you want, just like any other source file.
 
Share this answer
 
Comments
Espen Harlinn 25-Feb-11 3:28am    
Right, my 5
tamash_ionut 25-Feb-11 9:12am    
Thanks a lot.
When the external project is compiled, there will be Debug DataBase files generated (.pdb)
This tells Visual Studio how to relate the binary files (.lib, .dll, ...) with the source code. It also contains the fully qualified path to the code(such as C:\Libraries\My Project\Lib.cpp).

If visual studio can find this file then it will automatically load it and show debugging info. This can be set from Tools>Options>Debugging>Symbols (in VS2008, other versions may be different).

This is also required for Hans' answer to work too, although if you open the source file Visual studio will automatically search some nearby directories for the .pdb files, rather than manually setting them.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900