TPaxCompilerDebugger Methods


TPaxCompilerDebugger.Create

Constructor of the component.
constructor Create(AOwner: TComponent); override;

TPaxCompilerDebugger.Destroy

Destructor of the component.
destructor Destroy; override;

TPaxCompilerDebugger.RegisterCompiler

Registeres TPaxCompiler and TPaxProgram instances for debugger.
procedure RegisterCompiler(i_compiler: TPaxCompiler;
i_prog: TPaxProgram);

TPaxCompilerDebugger.Run

Runs script.
procedure Run;

TPaxCompilerDebugger.IsPaused

Returns 'true', if debugger is paused.
function IsPaused: Boolean;

TPaxCompilerDebugger.GetValueAsString

Returns value of variable as string.
function GetValueAsString(StackFrameNumber, Id: Integer): String; overload;
function GetValueAsString(Id: Integer): String; overload;

Arguments

Id
Id of variable.
StackFrameNumber
Number of stack frame.

TPaxCompilerDebugger.GetFieldValueAsString

Returns value of a record field or a class instance field as string.
function GetFieldValueAsString(StackFrameNumber: Integer; Id, FieldNumber: Integer): String;

Arguments

StackFrameNumber
Number of stack frame.
Id
Id of variable.
FieldNumber
Number of field.

TPaxCompilerDebugger.GetArrayItemValueAsString

Returns value of array element as string.
function GetArrayItemValueAsString(StackFrameNumber: Integer; Id, Index: Integer): String;

Arguments

StackFrameNumber
Number of stack frame.
Id
Id of array variable
Index
Index of array element.

TPaxCompilerDebugger.GetDynArrayLength

Returns length of dynamic array.
function GetDynArrayLength(StackFrameNumber, Id: Integer): Integer;

Arguments

StackFrameNumber
Number of stack frame.
Id
Id of dynamic array.

TPaxCompilerDebugger.GetDynArrayItemValueAsString

Returns value of dynamic array as string.
function GetDynArrayItemValueAsString(StackFrameNumber: Integer; Id, Index: Integer): String;

Arguments

Stack frame number
Number of stack frame.
Id
Id of variable.
Index
Index of array element.

TPaxCompilerDebugger.AddBreakpoint

Adds breakpoint.
procedure AddBreakpoint(const ModuleName: String;
SourceLine: Integer);

Arguments

ModuleName
Name of module.
SourceLine
Number of source line.

TPaxCompilerDebugger.AddTempBreakpoint

Adds temporary breakpoint.
procedure AddTempBreakpoint(const ModuleName: String;
                                SourceLine: Integer);

Arguments

ModuleName
Name of module.
SourceLine
Number of source line.

Use AddTempBreakpoint to implement "Run to Cursor".

TPaxCompilerDebugger.RemoveBreakpoint

Removes breakpoint.
procedure RemoveBreakpoint(const ModuleName: String;
SourceLine: Integer);

Arguments

ModuleName
Name of module.
SourceLine
Number of source line.

TPaxCompilerDebugger.HasBreakpoint

Returns 'true', if there is a breakpoint in module 'ModuleName' at line number'SourceLine'.
function HasBreakpoint(const ModuleName: String;
SourceLine: Integer): Boolean;

Arguments

ModuleName
Name of module.
SourceLine
Number of source line.


Copyright © 2006-2017 Alexander Baranovsky. All rights reserved.