The present invention is a method and system to support debug. A function is
compiled. The function includes a byte code sequence having a field byte code that
accesses or modifies a field. The compiled function provides a native code and
occupies a code space. An instrumentation code corresponding to a field match of
a field is generated. The instrumentation code is inserted to the native code.