Home
Auto Debug On Line Help
 
User Script: Auto Debug System

enableBreakpoint

The enableBreakpoint function to Enable or disable a breakpoint with Auto Debug System, so user can to change the monitor result dynamic.

void enableBreakpoint(
  BSTR szDll,    // Dll Name
  BSTR szFun,   // Function Name
  BOOL bEnable  // Enable/Disable
);

Parameters

szDll
Define which dll's function to be enable or disable.
szFun
Define which function to be enable or disable.
bEnable
Define enable or disable breakpoint for the function.

Return Values

No return value.

Examples

VBscript Example:

sub main
  callEnableFunction
  startProcess "Notepad.exe"
end sub

sub callEnableFunction
    enableBreakpoint "comdlg32.dll", "GetOpenFileNameW", true
    enableBreakpoint "comdlg32.dll", "GetOpenFileNameA", true
end sub

JavaScript Example:

function main(){
  callEnableFunction();
  startProcess("Notepad.exe");
}

function callEnableFunction(){
  enableBreakpoint("comdlg32.dll", "GetOpenFileNameW", true);
  enableBreakpoint("comdlg32.dll", "GetOpenFileNameA", true);
}

Requirements

Auto Debug for Windows: Unsupport.
Auto Debug Professional: Requires version 5.0 or later.

See Also

Script Information Overview, Script Functions, enableAllBreakpointOfDll

Copyright c 2003-2017, www.autodebug.com All Rights Reserved