|
Auto Debug On Line Help |
|
OnProcessEndThe OnProcessEnd event will be called when the debuggee process exit. void OnProcessEnd( LONG dwProcessId // The debuggee process ID. ); Parameters
Return ValuesNo return value. ExamplesVBscript Example: sub main
addMenuItem "Save Log", "SaveLogFile"
addMenuItem "Kill Trace Process", "KillTraceProcess"
startProcess "Notepad.exe", "c:\a.txt"
end sub
sub SaveLogFile
MsgBox "Call Save Log File"
saveLog "c:\aaa.dsf"
end sub
sub KillTraceProcess
MsgBox "Call Kill Process"
killProcess false
end sub
sub OnException(dwProcessId, ExceptionAddress, ExceptionCode, ExceptionFlags)
echo dwProcessId & " " & ExceptionAddress &" " & ExceptionCode & " " & ExceptionFlags
end sub
JavaScript Example: function main(){
addMenuItem("Save Log", "SaveLogFile");
addMenuItem("Kill Trace Process", "KillTraceProcess");
startProcess("Notepad.exe", "c:\a.txt");
}
function SaveLogFile(){
echo("Call Save Log File");
saveLog("c:\aaa.dsf");
}
function KillTraceProcess(){
echo("Call Kill Process");
killProcess(false);
}
function OnException(dwProcessId, ExceptionAddress, ExceptionCode, ExceptionFlags)
{
echo (dwProcessId + " " + ExceptionAddress +" " + ExceptionCode + " " + ExceptionFlags);
}
RequirementsAuto Debug for Windows: Unsupport. See AlsoScript Information Overview, Script Events, OnBreakPointEntry,OnBreakPointReturn ,OnException |
| Copyright c 2003-2025, www.autodebug.com All Rights Reserved |