error position

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

error position

Post by Dreglor »

when I get errors in debug mode it just gives me a line some times that can be difficult to see exactly is wrong on that line.
how about adding in the position on the line as well
like
Error on line 94, position 43
~Dreglor
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: error position

Post by PB »

I assume you're using multiple commands on one line? :) It saves space doing
so, but one command per line is supposed to be the "optimal" way to code, for
this very reason (makes it much easier to pinpoint the faulty command).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

Yes! For example: for an error on a function, to point to the wrong argument (the more general facture, it’s to indicate the position on the line).
It’s easier to analysed, but it’s not a priority for the current PB evolution, in my point of view…
Post Reply