Patent Document ID: 8271958
Application ID: 12333675

Base Claim:
1. A method for remapping user script code, developed to be run in a host application, to debuggable script code, comprising: determining one or more capabilities of a virtual machine (VM) that is utilized for executing the host application in a runtime environment of an application execution and development framework; instrumenting a function in the user script code with one or more guards based on at least one of the one or more capabilities of the VM, the instrumenting comprising at least one of: instrumenting a first guard into the user script code at a first location associated with a first potential debugging stopping operation based on at least one of the one or more capabilities of the VM; instrumenting a second guard into the user script code at a second location associated with a second potential debugging stopping operation if a functional call speed capability of the VM is above a first threshold; instrumenting a third guard into the user script code at a third location associated with a beginning of the function if the functional call speed capability of the VM is below a second threshold; and instrumenting a fourth guard into the user script code at a fourth location associated with a third potential debugging stopping operation and a fifth guard into the user script code at a fifth location associated with a fourth potential debugging stopping operation if the functional call speed capability of the VM is between the first threshold and the second threshold; executing the user script code in the runtime environment; and responsive to detecting an explicit debugging gesture using at least one of the one or more guards, transforming the function to generate debuggable script code, at least some of the method implemented at least in part via a processing unit.

---

Claim 11:
11. The method of claim 1 , comprising transforming remaining unexecuted user script code into debuggable script code beginning at a point associated with a second explicit debugging gesture of the user script code.