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 / how to see which line didn't compile, when working with includes?

Author
Message
qwe
22
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 25th May 2013 22:46
the compiler gives which line makes an error, but if there are includes, the number it gives doesn't help

i remember from when i used DB a while ago there was a file i could open and it would show all of the includes together
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th May 2013 22:54
I would not use the #Include method of attaching file, but rather add them in the IDE. That way the error command will take you (almost) to the right line.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 25th May 2013 23:40
I have had some problems like this, What I did is put all Subs And Functions into the main file at the bottom, To help track down the error faster. Sometimes it will skip pass what it should not.

======================================
My software never has bugs. It just develops random features.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 26th May 2013 00:01
As Mobiius said; it is common practice to include using the IDE.

However, if you get into a situation where you need to use the include statement; perhaps because the code is not your own; you can view the whole compiled project in FULLSOURCEDUMP.dba. This file is located in your TGC/TEMP folder. When ever a project is compiled, this file is overwritten with all includes in one document. Press CTRL+G to go to the line you need to check.

Login to post a reply

Server time is: 2026-06-09 15:30:10
Your offset time is: 2026-06-09 15:30:10