Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEBUGOUT WordWrap Tip
Message
From
12/02/2000 16:23:28
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
DEBUGOUT WordWrap Tip
Miscellaneous
Thread ID:
00331386
Message ID:
00331386
Views:
60
I use the DEBUGOUT Window a lot to help in debugging (and I do a lot of that <s>). For example:
TimeIt = SECONDS()
oJob = .oMotherJob.Add(m.ClassName, m.ClassLib)
DEBUGOUT STR(SECONDS() - m.TimeIt,8,4) + " to create " + m.ClassName ;
+ "... more text here"

The Debug Output is in its own window in the FoxPro Frame. I stretch it out wide to accept long lines of text, but at times, it still wordwraps the text. This makes it inconvenient to study and compare.
I worked quite a while to try and understand why it works the way it does. Finally, I realized it is tied to the width of the active form when the DEBUGOUT window was created. So if you ACTIVATE WINDOW "DEBUG OUTPUT" from the Command Window, the output won't be wrapped. If you wait until a form is active, the output will be wrapped so as to fit in the form. Why it does this I don't know, but at least now I can control wordwrap in the Output window.
Charlie
Reply
Map
View

Click here to load this message in the networking platform