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.

Program Announcements / debugger for Dark Basic Classic

Author
Message
waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 26th Jun 2006 08:51
here is a simple debugger to help with DB Classic.
What this is is a tool that works between your editor
and DB.exe to help with error reproting.

first, to describe the problem it fixes (sorta)
I code using Dark Edit. I have tried TDKs (which is nice)
but it was too slow with large files. Anyway,
I use lots of include files, and DB return an error
line number that is not in the main source code as displayed
by Dark Edit. Well, after getting frustrated enough trying
to "guess" which include file caused the error, I wrote
this tool. It will report which include file and about which
line in that file, and can open it for you ..... nice.

What this does not do ....
Preprocessor stuff. Make changes to your source ... and so on.
Its not an IDE or an editor. Its just a tool.


How it works ...
Dark Edit passes a complex command line to the DB compiler ...
Well, in this command line, is the file to compile and run ....
My tool scans this file line by line and creates a masterfile
(extension *.MFN) with all code placed into this file.
Then it calls DB (You will need to manually tell DE to call my
debugger) and checks for errors (reported by DB in the
DBCompiler.log file) and checks for the line number.
If the line number is more than the main source, my tool checks
for which include file that would be ..... and tells you.

If everything is OK (no errors) or the error in in the main file,
My app does not report anything (see settings in docs).

On a side note or two:
MyPad has been upgraded (my MDI text/html editor)
MyHelp is also a tool for showing DB Help files.

go to my web page from the link below.
thanks
Wandering Swordsman
17
Years of Service
User Offline
Joined: 14th Jun 2006
Location:
Posted: 30th Jun 2006 12:57
Interesting, has anyone tried this yet?

When I dream,
I carry a sword in one hand,
a gun in the other...
waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 19th Jul 2006 05:20
just added a setup screen (if you double click it) to help with
locating all those different files. Also added a small change to the returned error code to help locate errors in the include file.
The unclude file and ther line number will now be displayed in your
default editor. Nice,
Lukas W
20
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 21st Jul 2006 13:22
yea, this sounds really usefull.
if i ever start working on my dbc ide again, i will try to implement this little tool, if that is ok with you?
(not saying i will, because i don't feel like working on that ide for a while)

waffle
21
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 9th Aug 2006 06:12
no problem.
As long as people know about it.
I know many new users have problems getting to DBC errors
and this tool helps alot with that.
I use it alot an I have many include files.

MyHelp (help viewer for DBC) is also very helpful.
BUT, its a bit more fiddly and dangerous to use
because it permits directly altering existing .htm
help files ...

Login to post a reply

Server time is: 2024-05-25 06:55:54
Your offset time is: 2024-05-25 06:55:54