Click here to Skip to main content
11,930,069 members (48,323 online)
Rate this:
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,
Posted 24-Feb-11 21:45pm
SAKryukov 25-Feb-11 2:55am
Why not? What do you observe?
Rate this: bad
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.
Espen Harlinn 25-Feb-11 3:28am
Right, my 5
tamash_ionut 25-Feb-11 9:12am
Thanks a lot.
Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 25 Feb 2011
Copyright © CodeProject, 1999-2015
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