Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to configure source search path

4 views
Skip to first unread message

J.Weiss

unread,
Nov 16, 2009, 11:33:26 AM11/16/09
to
I have a simple question:
is it possible to define the source lookup path so that if the
debugger tries to find a file '<old_root>\a\b\c\file.cxx' it also
tries the path '<some_other_root>\a\b\c\file.cxx'.
Currently I have to add a new .srcpath entry whenever I encounter a
file which is located in some other file directory.
Just a thought: maybe it is possible to configure the srcsrv (using
cv2http.cmd for example? how would I do that?)
I would prefer a way where I don't have to modify the .pdb files
though.
Thanks a lot
JW

pat styles [microsoft]

unread,
Nov 20, 2009, 1:44:20 PM11/20/09
to
Hello JW.

I presume you are using windbg? If not, then you should. In windbg there
is a menu setting that you can set alternate source paths with.

File/Source File Path

You can enter as many paths as you like, separated by semicolons. You don't
need to enter the entire path - just enough to differentiate it from the
normal path. In the case of your example, you would simply enter
<some_other_root>, since the rest of the path is the same.

Alternately, if you just open the file with File/Open on the file you want,
windbg will automatically fix up the source file path to include the
required directory and persist that to the workspace.

.pat styles [microsoft]

"J.Weiss" <weis...@googlemail.com> wrote in message
news:64d13053-a6a7-4630...@j19g2000yqk.googlegroups.com...

0 new messages