Difference between revisions of "Lua:debug setBreakpoint"

From Cheat Engine
Jump to navigation Jump to search
(creating page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Lua]]
 
<onlyinclude>
 
<onlyinclude>
 
  [[debug_setBreakpoint]](address[, size, trigger[, method]][, function])
 
  [[debug_setBreakpoint]](address[, size, trigger[, method]][, function])
Line 22: Line 23:
 
* function: function or string. A function or the name of a function to call when the breakpoint triggers.
 
* function: function or string. A function or the name of a function to call when the breakpoint triggers.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
 +
{{LuaSeeAlso}}

Latest revision as of 00:17, 25 January 2018


debug_setBreakpoint(address[, size, trigger[, method]][, function])

Add a breakpoint at an address. Optional parameters are size, trigger, method, and function. Meaningful forms:

debug_setBreakpoint(address)
debug_setBreakpoint(address, function)
debug_setBreakpoint(address, size, trigger)
debug_setBreakpoint(address, size, trigger, function)
debug_setBreakpoint(address, size, trigger, method)
debug_setBreakpoint(address, size, trigger, method, function)
  • size: integer. Number of bytes to break for counting from the address. Ignored if trigger is "execute" (the default).
  • trigger: enum (integer). Type of access to break on. Default: bptExecute. Valid types are:[debuggertypedefinitions.pas]
    • bptExecute: break when the instruction pointer EIP is in the area
    • bptAccess: break when memory in the area is accessed
    • bptWrite: break when memory in the area is written to
  • method: enum (integer). How to implement the breakpoint. Default: Pascal variable preferedBreakpointMethod, set by ???. Valid methods are:[debuggertypedefinitions.pas]
    • bpmInt3: Interrupt? (Software breakpoint?)
    • bpmDebugRegister: ?? (Hardware breakpoint?)
    • bpmException: Exception?
  • function: function or string. A function or the name of a function to call when the breakpoint triggers.


See also[edit]