A system and method for facilitating cross-process access into a managed
code process is useful in an embodiment of the invention for debugging
managed code without perturbing the process being accessed or requiring
the code under test to be running during debugging. A compiler according
to an embodiment of the invention is used to produce mirror code wherein
in-process pointers have been replaced with cross-process pointers in
order to mirror the address space of the process under test to the
address space of the mirror code process. In a further embodiment, the
mirror code process is modified not only to allow but also to optimize
the cross-process access.