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