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.

Author
Message
darzon
15
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 12th Mar 2011 14:15
Hi
I ask information about debug in DarkBasic Pro,
I don't understand if it's possibile make a seriuos debug , because
I have read that is only possible to watch the content of variables.

In this forum (or web site) where I can find an explain about
use of debug in DBPro?

thank you.
YorkvilleJake
15
Years of Service
User Offline
Joined: 1st Apr 2011
Location:
Posted: 1st Apr 2011 22:13
No response so far?

I too am in the same boat. Relatively new to DBPro. Trying my hand at a more complicated game and I find the debugger to be extremely kludgy. For instance: do you have to start debugging from the top of the program or can you get the debugger to halt execution somewhere in the middle? Can someone point me in the right direction on using this or any debugger on a DBPro project?
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 1st Apr 2011 23:18
Well, i have never used the built in debuggers, variable watchers. With the previous editor they all crashed when i tried to run my project with them, and though i saw the new Synergy editor has them too, it was just so long i have never used them i don't really need it anymore.

Sorry for my little life story, the point is that you may print the variables you think cause problems in the top corner of the screen with set cursor + print.

This requires you to have a general suspect of what is causing errors, but that's actually not bad to have a feel about your whole program, so your brain works harder, which let's you train yourself to be able to come up with some nice ideas in the future.
Brendy boy
21
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 1st Apr 2011 23:32
Quote: " to halt execution somewhere in the middle?"

you can place breakpoints in the editor by double clicking left mouse button on a grey area placed left from the line numbers

YorkvilleJake
15
Years of Service
User Offline
Joined: 1st Apr 2011
Location:
Posted: 4th Apr 2011 18:15
Thanks Quel. I was doing the whole print to the screen and writing text data to a file for debugging but that process is cumbersome; it reminds me of programming back in 1985!

Brendy boy, thanks also. I did not know about setting the breakpoint. For me, it was right-click to bring up an editor menu or Shift-Control-F2 sets the break-point. But...

I'm a big believer in RTFM. Is this documented somewhere? I'll be darned if I could find it.
tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 4th Apr 2011 22:50 Edited at: 4th Apr 2011 22:51
Don't discount writing trap logs to disk. I find it much less cumbersome to throw in some trap logic than to setup "text" commands on screen, but it has its uses. Especially when things happen so fast you can't see them (an object's x/y/z blink to the 0,0,0 coordinate for a frame for some reason, etc.) You'll have to get a third party command to "append" to file, I think. Matrix1 may include this I'm not sure, I use a small dll which has this as its purpose.

I run the game and check the trap, refine, rerun, repeat. I've never used the debugger (it was broke when I tried it back in version 3.1, I think) and I've been able to get through many wild errors over the years with my soul (mostly) intact.


A 3D marble platformer using Newton physics.
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 4th Apr 2011 23:03
Yah, IanM's matrix utils have log commands just for this kind of stuff.

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 5th Apr 2011 10:25
Yeah go with IanMs Matrix 1 Utilities Plugin. I generally keep away from using Debug. It's easier to just run the program and if it has a bug it'll say what line number is the problem... but if it's not on that line it's usually somewhere close above that line.

If you don't have IanMs Matrix 1 Utilities Plugin here it is: http://forum.thegamecreators.com/?m=forum_view&t=85209&b=18

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 5th Apr 2011 14:27
lol, after 8 years of DBP coding, I never realised DBP had a debugger?

Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 6th Apr 2011 00:10
See there's =PRooF= that you don't need to use Debugger at all.
(I added an o)--^

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 6th Apr 2011 21:42
*groan*

Login to post a reply

Server time is: 2026-07-17 13:58:22
Your offset time is: 2026-07-17 13:58:22