Source code is different from source.

We are working on a .NET application and recently started using Git for version control.

Our latest version was tagged in Git, and now I'm trying to debug some problems.

Here is what I did:

  • Installed application (from release) on my PC.
  • Mark version with tags.
  • Launched VS and joined the process.
  • Placed breakpoints over some piece of code.

I get the message: โ€œThe source code is different from the original versionโ€, however this is the actual code that was compiled to release this installed version.

What am I doing wrong here?

using VS2008 if that matters.

BTW: What is the mechanism used for comparison if the binaries are different from the source code?

When cloning a repo from Git, for example, it will change the date of all files / folders to the current date. Is this value (datetime) used to determine the source code and binary?

+6
source share
1 answer

The problem was that I did not use (or retain) the original characters for this version.

I previously thought that the symbols contain only information about the source code and are not needed for the actual debugging of the program under VS. Apparently, I was wrong.

A good resource for characters for those looking for problems with them: http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/05/11/pdb-files-what-every-developer-must-know .aspx

This post also contains several other links to MSDN with more valuable information.

+3
source

Source: https://habr.com/ru/post/898533/


All Articles