Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
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 24-Feb-11 21:45pm
Comments
SAKryukov at 25-Feb-11 2:55am
   
Why not? What do you observe?
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Espen Harlinn at 25-Feb-11 3:28am
   
Right, my 5
tamash_ionut at 25-Feb-11 9:12am
   
Thanks a lot.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 25 Feb 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100