A method and system for accessing at debug time the source code used to
create a binary. During or shortly after compilation, an extractor
extracts the names of source code files used to create the binary,
communicates with a version control server to obtain information that
identifies the versions of source code files used to create the binary,
and stores the information in the binary or in a file associated with the
binary. At debug time, the information is retrieved and used to obtain
copies of the source code files from the version control server. The
copies of the source code files are placed in a directory where the
debugger expects to find them. The debugger may then show the source code
corresponding to the binary instructions of the binary during debugging.