Debugiranje Basic programa

Contents

# Debugging a Basic Program

## Prekidne točke i funkcije od jednog koraka

Korištenjem funkcija u jednom koraku možete tražiti greške za svaki redak u vašem Basic programu. Greške se lagano nalaze, jer možete vidjeti rezultat svakog koraka. Pokazivač u prekidnoj točki Uređivača naznačuje trenutni redak. Također možete postaviti prekidnu točku ako želite prisiliti prekid programa na određenom mjestu.

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.

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

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

### Svojstva prijelomne točke

Svojstva prijelomnih točaka koje su dostupne kroz kontekstni izbornik, klikom na desnu tipku miša na prijelomnu točku u prijelomnom stupcu.

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.

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.

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.

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.

Click Delete to remove the breakpoint from the program.

## Promaram vrijednosti varijabli

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.

Vrijednosti varijabli su jedino prikazane ako su u djelokrugu. Varijeble koje nisu definirane u trenutnoj lokaciji izvornog koda umjesto vrijednosti.

Možete uključiti grupe u matricu za gledanje. Ako unesete ime varijable matrice bez indeksa vrijednost u Gledaj kućici, sadržaj cijele matrice će biti prikazan.

Ako zadržite pokazivač miša na unaprijed definiranoj varijabli u uređivaču za vrijeme u vrijeme izvršavanja, sadržaj će varijable biti prikazan u skočnom prozoru.

## The Call Stack Window

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.

## Lista pogrešaka pri radu

Došlo je do iznimke

2 pogreške u sintaksi

3 povratak bes Gosuba

4 Incorrect entry; please retry

5 Invalid procedure call

6 Overflow

7 nedovoljno memorije

8 Array already dimensioned

9 indeks definiranih raspona

10 udvostručena definicija

11 Division by zero

12 varijable nisu definirane

13 nepodudaranje tipa podataka

14 nevažeći paramtar

18 korisnik je prekinuo proces

20 Nastavi bez greške

28 - Nedovoljno memorije

35 Sub-procedure or function procedure not defined

48 Error loading DLL file

49 Wrong DLL call convention

51 Interna greška

52 Invalid file name or file number

53 - Dokument nije pronađen

54 Incorrect file mode

55 - Dokument je već otvoren

57 - I/O greška

58 - Dokument već postoji

59 Incorrect record length

61 Disk or hard drive full

62 Reading exceeds EOF

63 Incorrect record number

67 Too many files

68 Device not available

70 Access denied

71 - Disk nije spreman

73 Not implemented

74 Renaming on different drives impossible

75 Path/file access error

76 - Putanja nije pronađena

91 Object variable not set

93 Neispravna mustra znakovnog niza

94 Use of zero not permitted

250 - DDE Greška

280 Awaiting response to DDE connection

281 No DDE channels available

282 No application responded to DDE connect initiation

283 Too many applications responded to DDE connect initiation

284 DDE channel locked

285 External application cannot execute DDE operation

286 Timeout while waiting for DDE response

287 user pressed ESCAPE during DDE operation

288 External application busy

289 DDE operation without data

290 Data are in wrong format

291 External application has been terminated

292 DDE veza je prekinuta ili promijenjena

293 DDE method invoked with no channel open

294 Invalid DDE link format

295 DDE message has been lost

296 Paste link already performed

297 Link mode cannot be set due to invalid link topic

298 DDE requires the DDEML.DLL file

323 Module cannot be loaded; invalid format

341 Invalid object index

366 Object is not available

380 Incorrect property value

382 This property is read-only

394 This property is write-only

420 Invalid object reference

423 Property or method not found

424 Object required

425 Invalid use of an object

430 OLE Automation is not supported by this object

438 This property or method is not supported by the object

440 OLE automation error

445 This action is not supported by given object

446 Named arguments are not supported by given object

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

448 Named argument not found

449 Argument is not optional

450 Invalid number of arguments

451 Object is not a list

452 Invalid ordinal number

453 Specified DLL function not found

460 Invalid clipboard format

951 Unexpected symbol:

952 - Očekivano:

953 - Očekivan znak

954 - Očekivana promjenjiva

955 Oznaka očekivana

956 Value cannot be applied

957 - Promjenjiva već definirana

958 Sub procedure or function procedure already defined

959 Oznaka već definirana

960 Varijabla nije nađena

961 Matrica ili procedura nije nađena

962 Procedura nije nađena

963 Oznaka nedefinirana

964 Unknown data type

965 Izlaz očekivan

966 Statement block still open: missing

967 Parentheses do not match

968 Symbol already defined differently

969 Parameters do not correspond to procedure

970 Invalid character in number

971 Array must be dimensioned

972 Else/Endif without If

973 not allowed within a procedure

974 not allowed outside a procedure

975 Dimension specifications do not match

976 Unknown option:

977 Constant redefined

978 Program too large

979 Strings or arrays not permitted

1000 Object does not have this property

1001 Object does not have this method

1002 Required argument lacking

1003 Invalid number of arguments

1004 Error executing a method

1005 Unable to set property

1006 Unable to determine property

Please support us!