1. A method in a data processing system marking data versioning for code, the method comprising: responsive to receiving a user input, inserting a first marking statement in the code and a second marking statement in the code, wherein a portion of code between the first marking statement and the second marking statement form a marked section of code; detecting a change made in data in an object caused by execution of the marked portion of code; and responsive to detecting the change, tracking the change, wherein the object may be restored to a prior state.