[futurebasic] Re: [FB] Repeated input statement stalls

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2011 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Tue, 7 Jun 2011 15:52:44 -0700
On Jun 7, 2011, at 11:22 AM, Brian S wrote:

> (2) Runtime functions for a quick look:
> fn DebugString( "some message" )
> fn DebugNumber( someValue )
> fn DebugRect( someRect )
> 
> (3) The Stop alert
> stop "x is totally FUBAR" + str$( x )
> 
> (4) Logging to Console.app is useful when apps crash because the output isn’t dependent on your app continuing to run:
> 
> DebugStr( "Got to this point in fn xxxx" )
> CFShow( someCFStringOrOtherCFVariable )

On Jun 7, 2011, at 11:43 AM, In reference to the above Dan Baeckström wrote:

>  Could you please point to some documentation on their use?


You’re looking at it. They aren’t in FBHelp. I agree they should be documented if only to let people know they exist. The actual use is trivial:

fn DebugNumber( someValue ) // substitute your own numeric variable
fn DebugRect( someRect ) // substitute your own Rect variable
fn DebugString( ) // prints either the literal or contents of pascal string variable

DebugStr and CFShow are similar but go to the console log.

If you would like to write documentation, take one of the html pages from the help and use it as template. Submit the finished doc back to the list and it will be considered for incorporation in the next release.


Brian S