Debugging

The code below provides an opportunity to use the debugging facility. The code opens a file, sets a counter to 1 and then reads the records in the file and increments the counter. To check that the counter produces the correct value we can use the debugger as follows:

The file here contained 2 records so the outcome of next_cons=3 is what we want.

 

Back to Delphi Menu