dbTalk Databases Forums  

VFP 6: Detecting

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6: Detecting in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6: Detecting - 09-09-2005 , 05:49 PM






I am debugging some code that is a loop. I would like to display
a browse at one point if singlestepping is on. How can I do this?

Checking set("step") does not do it. The output of
set step on
? set("step")
is
"OFF"!

Sincerely,

Gene Wirchenko


Reply With Quote
  #2  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-09-2005 , 06:13 PM






The only thing that jumps right to mind is setting a public variable when in
debug mode and checking for that. <shrug>

Dan

Gene Wirchenko wrote:
Quote:
I am debugging some code that is a loop. I would like to display
a browse at one point if singlestepping is on. How can I do this?

Checking set("step") does not do it. The output of
set step on
? set("step")
is
"OFF"!

Sincerely,

Gene Wirchenko



Reply With Quote
  #3  
Old   
man-wai chang
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-10-2005 , 09:00 AM



Dan Freeman wrote:
Quote:
The only thing that jumps right to mind is setting a public variable when in
debug mode and checking for that. <shrug
how about looking for the window name "debug"?

--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.6.13
^ ^ 21:59:01 up 6:32 0 users 1.09 1.13


Reply With Quote
  #4  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-12-2005 , 11:01 AM



Oooh. Good idea!

Hey Gene: WEXIST("TRACE") seems to work!

Dan

man-wai chang wrote:
Quote:
Dan Freeman wrote:
The only thing that jumps right to mind is setting a public variable
when in debug mode and checking for that. <shrug

how about looking for the window name "debug"?



Reply With Quote
  #5  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-12-2005 , 06:41 PM



On Mon, 12 Sep 2005 16:01:03 GMT, "Dan Freeman" <spam (AT) microsoft (DOT) com>
wrote:

Quote:
Oooh. Good idea!

Hey Gene: WEXIST("TRACE") seems to work!
Yup, after
set step on
to turn on the debugger. Oddly,
set debug on
does not work. I thought it would.

[snip]

Sincerely,

Gene Wirchenko



Reply With Quote
  #6  
Old   
Rush Strong
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-12-2005 , 07:30 PM




"Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote

Quote:
On Mon, 12 Sep 2005 16:01:03 GMT, "Dan Freeman" <spam (AT) microsoft (DOT) com
wrote:

Oooh. Good idea!

Hey Gene: WEXIST("TRACE") seems to work!

Yup, after
set step on
to turn on the debugger. Oddly,
set debug on
does not work. I thought it would.

From the docs (VFP 8):

--------------------
Included for backward compatibility. Makes the Debug and Trace windows
either available or unavailable from the Visual FoxPro menu system in
versions prior to 5.0.
SET DEBUG ON | OFFParameters
ON
(Default) Makes the Debug and Trace windows either available or
unavailable from the Visual FoxPro menu system.
OFF
Makes the Debug and Trace windows unavailable from the Visual FoxPro
system menu. However, when SET DEBUG is set to OFF, you can open the Debug
window with SET ECHO ON or ACTIVATE WINDOW DEBUG, and you can open the Trace
window with SET STEP ON or ACTIVATE WINDOW TRACE.
---------------------

It appears that SET DEBUG makes the window available, but doesn't open it.

- Rush




Reply With Quote
  #7  
Old   
Fred Taylor
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-12-2005 , 09:51 PM



Just "DEBUG" will open the window.

--
Fred
Microsoft Visual FoxPro MVP


"Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote

Quote:
On Mon, 12 Sep 2005 16:01:03 GMT, "Dan Freeman" <spam (AT) microsoft (DOT) com
wrote:

Oooh. Good idea!

Hey Gene: WEXIST("TRACE") seems to work!

Yup, after
set step on
to turn on the debugger. Oddly,
set debug on
does not work. I thought it would.

[snip]

Sincerely,

Gene Wirchenko




Reply With Quote
  #8  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-13-2005 , 11:33 AM



Right, SET DEBUG predates (by a LOT of years) our current debugger, which
was introduced in VFP5 I think.

As Fred says, just "DEBUG" will open the debugger. (Although you can still
ACTIVATE WINDOW TRACE to open it as well.)

Dan


Gene Wirchenko wrote:
Quote:
On Mon, 12 Sep 2005 16:01:03 GMT, "Dan Freeman" <spam (AT) microsoft (DOT) com
wrote:

Oooh. Good idea!

Hey Gene: WEXIST("TRACE") seems to work!

Yup, after
set step on
to turn on the debugger. Oddly,
set debug on
does not work. I thought it would.

[snip]

Sincerely,

Gene Wirchenko



Reply With Quote
  #9  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Detecting - 09-13-2005 , 12:44 PM



On Mon, 12 Sep 2005 19:51:41 -0700, "Fred Taylor"
<ftaylor (AT) mvps (DOT) org!REMOVE> wrote:

Quote:
Just "DEBUG" will open the window.
Thank you.

Sincerely,

Gene Wirchenko



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.