Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TIFPSCustomDebugExec

Unit

ifps3debug

Declaration

type TIFPSCustomDebugExec = class(TIFPSExec)

Description

The TIFPSCustomDebugExec class is used to load and use compiler debug information

Hierarchy

TIFPSExec

Fields

 NameDescription
Protected FCurrentCol  
Protected FCurrentDebugProc  
Protected FCurrentPos  
Protected FCurrentRow  
Protected FDebugDataForProcs  
Protected FGlobalVarNames  
Protected FLastProc  
Protected FProcNames  

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public procedure Clear; override;
Protected procedure ClearDebug; virtual;
Public function GetCurrentPosition: Cardinal;
Public function GetCurrentProcNo: Cardinal;
Protected function GetCurrentProcParams: TIfStringList;
Protected function GetCurrentProcVars: TIfStringList;
Public function GetGlobalVar(I: Cardinal): PIfVariant;
Public function GetProcParam(I: Cardinal): PIfVariant;
Public function GetProcVar(I: Cardinal): PIfVariant;
Public procedure LoadDebugData(const Data: string);
Public function TranslatePosition(Proc, Position: Cardinal): Cardinal;
Public function TranslatePositionEx(Proc, Position: Cardinal; var Pos, Row, Col: Cardinal): Boolean;

Description

Public constructor Create;

Create an instance of the debugger

Public destructor Destroy; override;

destroy the current instance of the debugger

Public procedure Clear; override;

Clear the debugdata and the current script

Protected procedure ClearDebug; virtual;

 

Public function GetCurrentPosition: Cardinal;

Get the current position

Public function GetCurrentProcNo: Cardinal;

The current proc no

Protected function GetCurrentProcParams: TIfStringList;

 

Protected function GetCurrentProcVars: TIfStringList;

 

Public function GetGlobalVar(I: Cardinal): PIfVariant;

Get global variable no I

Public function GetProcParam(I: Cardinal): PIfVariant;

Get proc param no I

Public function GetProcVar(I: Cardinal): PIfVariant;

Get Proc variable no I

Public procedure LoadDebugData(const Data: string);

Load debug data in the scriptengine

Public function TranslatePosition(Proc, Position: Cardinal): Cardinal;

Translate a position to a real position

Public function TranslatePositionEx(Proc, Position: Cardinal; var Pos, Row, Col: Cardinal): Boolean;

Translate a position into a row, col and offset

Properties

Overview

Public property CurrentProcParams: TIfStringList;
Public property CurrentProcVars: TIfStringList;
Public property GlobalVarNames: TIfStringList;
Public property ProcNames: TIfStringList;

Description

Public property CurrentProcParams: TIfStringList;

The paramters of the current proc (could be nil)

Public property CurrentProcVars: TIfStringList;

The variables in the current proc (could be nil)

Public property GlobalVarNames: TIfStringList;

Contains the names of the global variables

Public property ProcNames: TIfStringList;

Contains the names of the procedures