| US 7,516,445 B2 | ||
| Locating source code when stopping in a debugger | ||
| Hartmut Maennel, Issaquah, Wash. (US); Habib Heydarian, Kirkland, Wash. (US); and Stephen W. Provine, Seattle, Wash. (US) | ||
| Assigned to Microsoft Corporation, Redmond, Wash. (US) | ||
| Filed on Jun. 30, 2005, as Appl. No. 11/171,811. | ||
| Prior Publication US 2007/0006155 A1, Jan. 04, 2007 | ||
| Int. Cl. G06F 9/44 (2006.01) | ||
| U.S. Cl. 717—125 [717/124; 717/129] | 20 Claims |

| 1. A method for retrieving source code during a software debugging session, the debugging session using compiled code capable
of running in different runtime environments, the method comprising:
detecting a stopping point related to a compiled program executing in a target runtime host environment, the stopping point
detected in a development system comprising local debugger software, the local debugger software communicating with remote
debugger software accessing the host environment, the host environment storing a copy of original source code files together
with location information corresponding to the original source code files, the compiled program, and a debugging support file,
the debugging support file comprising information which maps parts of the compiled program to source code lines, wherein the
source code files are characterized by corresponding original source code file locations and corresponding source file checksums,
wherein the compiled program and the debugging support file are compatible with multiple runtime host environments;
selecting to view a portion of source code of the compiled program corresponding to the detected stopping point, the source
code portion absent from the development system;
requesting a location for the source code portion of the compiled program, the request generated by the local debugger software
and sent to the remote debugger software, wherein the source code is located remotely from the remote debugging software,
and wherein the remote debugging software accesses the debugging support file and acquires the source code portion file location
and corresponding source file checksum stored in the runtime host environment;
receiving, by the local debugging software, a host-specific resource locator for the source code portion, wherein the host-specific
resource locator comprises a unique resource locator including a host type prefix and an original path;
searching for a matching file of the source code portion using the host-specific resource locator; and
displaying the source code portion.
|