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 / is it possible to to get DBPro Debugger to work?

Author
Message
MSon
22
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 25th Nov 2010 17:38
hi all

i've got a fault in my code, and running in debug mode would be useful, but as the debug mode in DBPro never works, im wondering if there is any way around to get the debugger to work.

Thanks

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Nov 2010 17:47
Sure, print all variables that could potentially lead to the problem to the screen That's basically what a debugger can do.

TheComet

MSon
22
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 25th Nov 2010 17:53 Edited at: 25th Nov 2010 17:53
its a command thats making my editor hang and not sure where in the function, just thinking the debugger would be an easier way than remming every line and unremming one by one, shame they never fixed the debugger, it could save a lot of time.

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 25th Nov 2010 18:16 Edited at: 25th Nov 2010 18:16
IanM's Matrix1 plugin set contains some dead handy commands for logging stuff either to a console window, or to a log file.

I had to do this recently when I discovered that the system dmem available command didn't seem to work anymore.

Basically, I just printed a line to the console window after every few lines of code saying which bit had just been run.

Soon found the offending command, but now I have to wait for Lee to fix it before I can finish my hardware reporting function.

>Edit<

Forgot to say, I didn't even realise DBP had a debugger, lol

Frank C
16
Years of Service
User Offline
Joined: 3rd Jul 2010
Location: Houston TX
Posted: 30th Nov 2010 18:25
I recently had issues also that needed debugging, Using IanM's Write Log Debug command to write some messages with variable information I was able to solve the problem. He also recommended the following which will display the information from that debug command:

Quote: "The logging is fairly simple - there aren't very many commands.

Ignore the tags, as they're not mandatory, and there's not a lot left.

If you want to use OPEN LOG DEBUG, then download yourself a copy of the sysinternals debugview program and have that running while you run your program. http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx

In addition, there's a simple way to determine whether your array has been defined at the point of use. You can grab the pointer to it, and if the value returned is zero, then you haven't executed the DIM for the array - that's necessary, as the DIM statement not only declared the array at compile-time, but allocates the storage for it at run-time."
MSon
22
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 30th Nov 2010 19:28 Edited at: 30th Nov 2010 19:28
That Download Looks very useful, Thanks

Login to post a reply

Server time is: 2026-07-21 13:38:03
Your offset time is: 2026-07-21 13:38:03