Debugger Feature: Edit And Continue

 

Demo Overview

The "Edit and Continue" feature is demonstrated by performing edits on an application while it is running under the managed debugger. 

Edit and Continue requires cooperation between the compiler and debugger. The mdbg sample does not have its own compiler, so ilasm (the IL assembler utility) will be used as the compiler to emit edits.

 

Running the Demo

cd demo\EditAndContinue

run.bat

 

This script demonstrates Edit and Continue in three steps. From the command output you can see all the interaction between the runtime and debugger that is required for the edit. The commands given to mdbg are fed in on the command-line separated by the "!" character, but could just as well be typed in individually by a user.

The run.bat script does following: