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 / Pain Debugging in DBpro

Author
Message
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 4th May 2003 18:50
Hmmm... I found that DBpro has a very poor debugging tools. The debugger is somewhat unstable. It runs kinda slow and crashes my DBpro quite often.

For me, the most important debugging features I need in DBpro is
1. variable watch
2. setting breakpoints.
3. stepping the code.

The first one is still ok in DBpro debugger. But the second and the third are kinda unstable.

Does anyone facing this problem (or only me myself). Does DBA have any patches for this? How do you guys debug your games usually?

Thanks!
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
APEXnow
Retired Moderator
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th May 2003 18:54
Ensure that you've got Patch 4 of DBPro and also update your IDE with 1.09 and 1.092. Although there may still be little issues with the debugger, I'm sure this will improve on later patches.

"Man who looses key to woman's appartment...... He get no nookie" - A wise chinese man.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 4th May 2003 21:06
"It runs kinda slow "

Do you mean in step-through or debug mode? - In step through mode, this is probably a system limit.

Current Project: TANK MELÉE [Artwork]

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_101.zip
rapscaLLion
23
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 4th May 2003 21:51
None of the debug tools work for me. If I try a command in the CLI, it crashes. If I try to look at the variables, there is a 50 50 chance of a crash, and when it doesn't crash, I can't figure out what the hell it's showing me. There are some variable names with & marks at the end of them, but no values are shown, and wtf is with the second little window to the left? I'm very confused, andI can't find any documentation that describes the debugging features. As for breakpoints, none have ever worked for me, and step through mode requires that I click next countless times before it steps one line. Piece of crap and that's being generous!

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
APEXnow
Retired Moderator
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 4th May 2003 22:22
Ouch! <Looks over left shoulder to see if DBS were watching>

"Man who looses key to woman's appartment...... He get no nookie" - A wise chinese man.
rapscaLLion
23
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 4th May 2003 23:11
Ouch? It's the flaming truth! If they're watching, which I hope they are, maybe they'll try and fix it

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
Nilrem
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 5th May 2003 01:38
I'm in agreement with rapscaLLion on this one, though I've never needed it as much as others (the debugger) because I've only done small projects, it would of come in handy at the times when I was left scratching my head.

I hear and I forget. I see and I remember. I do and I understand.
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 5th May 2003 05:37
Debugging is extremely important to me. Right now, I am setting checkpoints in my code by outputing some text on the screen to debug.

Any better ways of doing this?

Oh BTW, what is the difference between Debug mode and Step Through mode. I spent most of my time in Step Through mode as I figured that's the only way I can make the breakpoints work properly.

Thanks for all the help!

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 5th May 2003 18:02
The only other way that I use is to make up a new project to test small parts of the main project.

It's not always possible depending on what the code does and it takes time.
haggisman
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 5th May 2003 18:47 Edited at: 5th May 2003 19:00
I always found it worked quite well. I usually use the second window to place variables that i want to watch, and breakpoints are great for skipping out a large part of your code to get to specific area.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 5th May 2003 18:58
The debugger always works quite well for me, apart from the strings which have not yet been given values crashing the Variable Watcher. The CLI understandably causes problems sometimes, and it needs work.

"wtf is with the second little window to the left?"

In a full program, there would be hundreads of variables used, navigating through the main variable list would be annoying, by clicking on the item in the main variable list, it is added to the watch window, so that you can see it more easily.

It is annoying that only globals seem to be listed currently (although you can copy local to global using the CLI). I can understand the technical reasons why a command can't be run from the CLI, or at least some commands, but it would be nice if the debugger checked the command before running it. Being able to insert a command into your code somewhere would be useful as well (although for obvious reasons, changes could not be made to the structural flow of the program, ie. no changing / adding / removing of loops / if / select)

Current Project: TANK MELÉE [Artwork]

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_101.zip
rapscaLLion
23
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 7th May 2003 03:48
ok I get it, but the thing still doesn't show me any values, just & symbols... oh and the thing doesn't recognize breakpoints for me

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 7th May 2003 05:29
Any where I can the complete reference of the CLI commands?

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 14th May 2003 09:20
Hmmm.... silence makes me feel nauseous.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 14th May 2003 13:26
The CLI commands are just normal DarkBASIC commands,

eg:

a=b
load object "test.x",1
sync rate 60

You cannot have loops in there for obvious reasons.

If you have problems with the debugger, mail the code to [email protected]. If he doesn't find the bugs, he won't be able to fix them.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_101.zip
Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 15th May 2003 00:38
Funny... the debugger is about as stable as an anvil on the tip of the Space Needle with me, but I don't really mind (don't use it anyhow). Often it locks up when I try to exit too it; when I switch to the variable watcher after excecuting *any* commands in the CLI it crashes, and returning to my program, when it dosen't crash, gives me a BSOD.

--Mouse

Famous Fighting Furball

Login to post a reply

Server time is: 2026-07-11 12:01:52
Your offset time is: 2026-07-11 12:01:52