19. A tangible computer readable storage device storing instructions that when executed perform 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.
19. A tangible computer readable storage device storing instructions that when executed perform 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. 20. The tangible computer readable storage device of claim 19 , the method comprising splitting the function into a function header and a function body.