Dominique
Dominique

Reputation: 17527

How to explain Visual Studio that my source code is in another directory?

I'm doing dump analysis. Normally when I access a dump and double-click in the callstack, Visual Studio asks me where to find the mentioned file. That openfile dialogbox gives me information about the location (including the GIT hash) of my source code.

Unfortunately I've done something wrong, and now Visual Studio does not ask anything anymore: he just opens the source code file in some directory, even though that file is not the correct version.

I'd like to see that openfile dialog back.

For your information: I know it's possible to have that particular file received from GIT and have that file opened somewhere in the %TEMP% directory, but I don't want that: this only opens that one file, while I'd like to use the openfile dialogbox to retrieve my whole project from GIT.

Does anybody know how to do this?

Thanks in advance

Upvotes: 0

Views: 869

Answers (1)

Dominique
Dominique

Reputation: 17527

In the meantime I've found the answer: in Tools, Options, Debugging, General, there's a setting "Require source files to exactly match the original version". By accident, this has been unchecked. Checking it back again solves my issue: now Visual Studio is showing the openfile dialogbox again. For reference purposes, I'll put here the text of the openfile dialogbox:

The source file is different from when the module was built.
Would you like the debugger to use it anyway?

Upvotes: 1

Related Questions