Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Debugger - Unable to view local variables?

Author
Message
bodmcn
15
Years of Service
User Offline
Joined: 6th Oct 2010
Location:
Posted: 1st Nov 2010 11:54
Hi,

I am trying to examine local variables within functions while running the code through the debugger, but am unable to find them; only the global variables seem to be visible. Nor can I seem to example the contents of any TYPE'd variables. Am I missing something?

Thanks,
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 1st Nov 2010 14:02
Display them manually with the text command.

51fa1db0ec7c4af52d93a6f5d0e86bc5


bodmcn
15
Years of Service
User Offline
Joined: 6th Oct 2010
Location:
Posted: 1st Nov 2010 15:37
How does this get done? Is this through the command line in the debugger? I can't find any information on how this is used.

Any more details would be most welcome.

Thanks,
Frank C
16
Years of Service
User Offline
Joined: 3rd Jul 2010
Location: Houston TX
Posted: 1st Nov 2010 16:43
I think he means use the text command in your code to print the variable values to the screen, I've had to do this also to debug some issues, it's a terrible method but until the editor includes a true debugger it's sometimes necessary.
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Nov 2010 19:19
Look up IanM's console commands. You can output all your debug information to a separate window. You can also send it to a formatted log file too.

bodmcn
15
Years of Service
User Offline
Joined: 6th Oct 2010
Location:
Posted: 2nd Nov 2010 02:30
Thanks for that; I have just implemented the logging from Matrix1 to allow tracking. A decent debugger though would be very useful.

Thanks for the responses.

Login to post a reply

Server time is: 2026-07-22 02:47:06
Your offset time is: 2026-07-22 02:47:06