Function chakracore_sys::JsDiagGetSource [] [src]

pub unsafe extern "system" fn JsDiagGetSource(
    scriptId: c_uint,
    source: *mut JsValueRef
) -> JsErrorCode

Gets source for a specific script identified by scriptId from JsDiagGetScripts. Id of the script. Source object. { "scriptId" : 1, "fileName" : "c:\Test\Test.js", "lineCount" : 12, "sourceLength" : 15154, "source" : "var x = 1;" } The code JsNoError if the operation succeeded, a failure code otherwise. The current runtime should be in debug state. This API can be called when runtime is at a break or running.