oUyP8‖Debugging a Basic Program

Contents
mMbrA‖

# kS45y‖Debugging a Basic Program

## z87PZ‖Breakpoints and Single Step Execution

Fb5tF‖You can check each line in your Basic program for errors using single step execution. Errors are easily traced since you can immediately see the result of each step. A pointer in the breakpoint column of the Editor indicates the current line. You can also set a breakpoint if you want to force the program to be interrupted at a specific position.

ChbMW‖Double-click in the breakpoint column at the left of the Editor window to toggle a breakpoint at the corresponding line. When the program reaches a breakpoint, the program execution is interrupted.

Jhx92‖The single step execution using the Single Step icon causes the program to branch into procedures and functions.

GmkFd‖The procedure step execution using the Procedure Step icon causes the program to skip over procedures and functions as a single step.

### fcUGR‖Properties of a Breakpoint

p9M5v‖The properties of a breakpoint are available through its context menu by right-clicking the breakpoint in the breakpoint column.

eDgG8‖You can activate and deactivate a breakpoint by selecting Active from its context menu. When a breakpoint is deactivated, it does not interrupt the program execution.

8pxBr‖Select Properties from the context menu of a breakpoint or select Breakpoints from the context menu of the breakpoint column to call the Breakpoints dialog where you can specify other breakpoint options.

H5wR2‖The list displays all breakpoints with the corresponding line number in the source code. You can activate or deactivate a selected breakpoint by checking or clearing the Active box.

CiEm5‖The Pass Count specifies the number of times the breakpoint can be passed over before the program is interrupted. If you enter 0 (default setting) the program is always interrupted as soon as a breakpoint is encountered.

xoCSA‖Click Delete to remove the breakpoint from the program.

## 5MRSa‖Observing the Value of Variables

NCbMk‖You can monitor the values of a variable by adding it to the Watch window. To add a variable to the list of watched variables, type the variable name in the Watch text box and press Enter.

jXfHR‖The values of variables are only displayed if they are in scope. Variables that are not defined at the current source code location display ("Out of Scope") instead of a value.

EjfNY‖You can also include arrays in the Watch window. If you enter the name of an array variable without an index value in the Watch text box, the content of the entire array is displayed.

vMioe‖If you rest the mouse over a predefined variable in the Editor at run-time, the content of the variable is displayed in a pop-up box.

## RP72G‖The Call Stack Window

yN9DQ‖Provides an overview of the call hierarchy of procedures and functions. You can determine which procedures and functions called which other procedures and functions at the current point in the source code.

## igo3o‖List of Run-Time Errors

FZz2o‖1 An exception occurred

DKGkC‖2 Syntax error

YsmXG‖3 Return without Gosub

BWdtp‖4 Incorrect entry; please retry

JpK7p‖5 Invalid procedure call

5FBva‖6 Overflow

Aesp7‖7 Not enough memory

ADAg2‖8 Array already dimensioned

RGkBU‖9 Index out of defined range

aGWmD‖10 Duplicate definition

yQDJd‖11 Division by zero

QNoHo‖12 Variable not defined

JA5Hz‖13 Data type mismatch

4TqAx‖14 Invalid parameter

jdVyz‖18 Process interrupted by user

JLrsT‖20 Resume without error

GXk5T‖28 Not enough stack memory

FmFDo‖35 Sub-procedure or function procedure not defined

FV8Co‖48 Error loading DLL file

AUofE‖49 Wrong DLL call convention

gFqEp‖51 Internal error

BfDiD‖52 Invalid file name or file number

BxqWu‖53 File not found

hLWBB‖54 Incorrect file mode

vfktA‖55 File already open

5U4Mf‖57 Device I/O error

JViEn‖58 File already exists

ECAdf‖59 Incorrect record length

dwGgg‖61 Disk or hard drive full

S3khY‖62 Reading exceeds EOF

jeGkc‖63 Incorrect record number

2UVyw‖67 Too many files

Utuex‖68 Device not available

dRuHr‖70 Access denied

arFri‖71 Disk not ready

SCC7B‖73 Not implemented

iZW7f‖74 Renaming on different drives impossible

kTskL‖75 Path/file access error

uBBn2‖76 Path not found

RKFgh‖91 Object variable not set

zqsZE‖93 Invalid string pattern

ksvCu‖94 Use of zero not permitted

RYPAt‖250 DDE Error

UfCnF‖280 Awaiting response to DDE connection

xZB2C‖281 No DDE channels available

SBNvn‖282 No application responded to DDE connect initiation

FWhCT‖283 Too many applications responded to DDE connect initiation

MrWKp‖284 DDE channel locked

HBT2W‖285 External application cannot execute DDE operation

c7CXR‖286 Timeout while waiting for DDE response

CjAQV‖287 user pressed ESCAPE during DDE operation

tgG8B‖288 External application busy

VfisP‖289 DDE operation without data

y9Et9‖290 Data are in wrong format

JNNcv‖291 External application has been terminated

DGDBs‖292 DDE connection interrupted or modified

EAqMA‖293 DDE method invoked with no channel open

MSG8v‖294 Invalid DDE link format

TPbqp‖295 DDE message has been lost

SaGET‖296 Paste link already performed

FYYN7‖297 Link mode cannot be set due to invalid link topic

4FUFN‖298 DDE requires the DDEML.DLL file

wCkxq‖323 Module cannot be loaded; invalid format

Kqnuc‖341 Invalid object index

ZLqAy‖366 Object is not available

9THvG‖380 Incorrect property value

GVG9j‖382 This property is read-only

4ZfRc‖394 This property is write-only

8HyzA‖420 Invalid object reference

JmJEM‖423 Property or method not found

QcFEv‖424 Object required

5JYN2‖425 Invalid use of an object

RRiUM‖430 OLE Automation is not supported by this object

FdF9E‖438 This property or method is not supported by the object

FGpys‖440 OLE automation error

VbSM2‖445 This action is not supported by given object

AJaz2‖446 Named arguments are not supported by given object

hPPNr‖447 The current locale setting is not supported by the given object

B5qgM‖448 Named argument not found

uA2bA‖449 Argument is not optional

jwUa7‖450 Invalid number of arguments

9LiNF‖451 Object is not a list

CRFBJ‖452 Invalid ordinal number

6aDe2‖453 Specified DLL function not found

qAGfZ‖460 Invalid clipboard format

xEbv8‖951 Unexpected symbol:

tGht6‖952 Expected:

bYbvt‖953 Symbol expected

F58GE‖954 Variable expected

ovp3T‖955 Label expected

vN82g‖956 Value cannot be applied

v4YL6‖957 Variable already defined

nSU7c‖958 Sub procedure or function procedure already defined

FVyYw‖959 Label already defined

wqmVZ‖960 Variable not found

3xV2f‖961 Array or procedure not found

WvEZU‖962 Procedure not found

LZQUF‖963 Label undefined

nCn66‖964 Unknown data type

G4CNC‖965 Exit expected

Gix57‖966 Statement block still open: missing

tXAC8‖967 Parentheses do not match

BjgAZ‖968 Symbol already defined differently

v3YUD‖969 Parameters do not correspond to procedure

WWM2a‖970 Invalid character in number

GvBvK‖971 Array must be dimensioned

rhQJE‖972 Else/Endif without If

RBFDa‖973 not allowed within a procedure

MBgDF‖974 not allowed outside a procedure

FBV3n‖975 Dimension specifications do not match

nwNaJ‖976 Unknown option:

jujW4‖977 Constant redefined

WdYAj‖978 Program too large

yhBbE‖979 Strings or arrays not permitted

795cp‖1000 Object does not have this property

2Pmyz‖1001 Object does not have this method

XDhUD‖1002 Required argument lacking

imBTP‖1003 Invalid number of arguments

yRbzS‖1004 Error executing a method

sjbZK‖1005 Unable to set property

jDyKo‖1006 Unable to determine property

Please support us!