Debug needed idea!

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Debug needed idea!

Post by Rook Zimbabwe »

I am running PB4.2... I wish I could mix strings and numerical values in Debug... It is so tiresome to create a number I want to tag into a string just so I can have it on the same line!

The ability to just put:
Debug "Idiots Value: "+ d.d
Would be beyond price... I might have to donate enough for everyone to have a dinner or something! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Debug needed idea!

Post by PB »

+1

It's at the point where I either just use "Debug X" without any leading string,
or I just use CallDebugger (to pause my app) and then read the ToolTip for
each variable instead. Doing either of these annoys the hell out of me. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

I'm really missing something and not trying to be a smart-ass, but

Debug "Idiots value " + strD(d)

is too much trouble?

cheers
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@rsts: Frankly, yes. :)

Okay, in my case I usually debug several numbers on a single Debug line,
and adding any string means I then have to wrap them all with Str(). Which
do you think of the below lines is less trouble to type? That's our point.

Code: Select all

Debug "Results: "+StrF(a.f)+", "+StrD(b.d)+", "+Str(c)

Code: Select all

Debug "Results: "+a+", "+b+", "+c
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Gotcha, no problem, I understand.

My personal preference would be to do the typing myself and have Fred work on other features that I can't do as easily myself, but I see your point. :)

cheers
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> My personal preference would be to do the typing myself and have Fred
> work on other features that I can't do as easily myself

;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply