1. A method comprising: re-compiling a function when a field watch for a field is activated, the function including a byte code sequence having a field byte code that accesses or modifies the field, the recompiled function providing a native code and occupying a code space; generating an instrumentation code corresponding to the field watch of the field; and inserting the instrumentation code to the native code.