发明名称 Remapping debuggable code
摘要 User script code that has been developed for execution in a host application can be remapped to debuggable script code, based on explicit debugging gestures, allowing for appropriate debugging coverage for the code while mitigating execution (in)efficiency issues. Capabilities of a virtual machine used for a host application can be determined, and the user script code can be instrumented with guards for detecting explicit debugging gestures based on capabilities of the virtual machine. The instrumented user script code can be executed in a runtime environment, for example, by a just-in-time compilation service. If an explicit debugging gesture is detected, a function where the gesture was detected can be transformed into debuggable script code, in one embodiment, based on the debuggable gesture detected.
申请公布号 US9047405(B2) 申请公布日期 2015.06.02
申请号 US201213572083 申请日期 2012.08.10
申请人 Microsoft Technology Licensing, LLC 发明人 Stall Jonathon Michael;Crider Anthony L.;Zinkovsky Igor A;Hugunin James
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 代理人 Sullivan Kevin;Drakos Kate;Minhas Micky
主权项 1. A method, comprising: determining a capability of a virtual machine (VM) configured to execute a host application in a runtime environment; instrumenting a function in user script code developed for execution in the host application with a guard based upon the capability of the VM, the instrumenting comprising at least one of: instrumenting the function with the guard at a location in the user script code, the location determined based upon the capability of the VM; orinstrumenting the function with a number of guards determined based upon the capability of the VM, the number of guards comprising the guard; executing the user script code in the runtime environment; and responsive to detecting an explicit debugging gesture using the guard, transforming the function to generate debuggable script code.
地址 Redmond WA US