Well,
the program line counter is displayed in a file named Db.dba in the dark basic main directory. It is only updated when you have
tracemode = 1 in the setup.ini file also in the main directory. This file will display every line in order of the dbc script you most recently ran numbering from 1 up. It will even show empty lines.
As far as the variable values, since DBC doesn't have access to memory pointers, it's kinda hard to get that info unless you reassign the values of your variables to other variables or just write them every so often to a file.
I was thinking, a function could be created that maybe takes 12 parameters: 2 integers and the 2 names of the variables
2 floats and the 2 names of the variables
2 strings and the 2 names of the variables
Maybe also a program line parameter (to keep track of where you will run the trace from in the program)
Inside the function, the names and values are written as strings to a file along with the program line. You would place the function in areas of the program where you want to check the values of the variables. Later, you can review the file to see what the values of the variables were.
As far as tying it to the Db.dba file, I'd have to think about it a little bit.
Enjoy your day.