Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 To: mk sharma
  Where is mk sharma?
 mumbai
 India
 mk sharma
 Tags
Subject: RE: Debugger
Thread ID: 330922 Message ID: 330960 # Views: 45 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Sunday, December 25, 2011 12:32:14 AM         
   


> >
> > I would recommend making the following enhancements to this function. First define a global property at the VFP level as follows:
> >
> >
> > ADDPROPERTY(_VFP,"TestMode",.T.)       && Flag for development
> > IF FILE(FORCEEXT(SYS(16),"EXE"))       && Check if production or test mode
> >     _VFP.TestMode = .F.
> > ENDIF
> > 

> >
> > Now add the property to your function:
> >
> >
> > function startdebug
> > ****
> > IF _VFP.TestMode AND (VERSION(2)<>0) AND (MESSAGEBOX("SET STEP ON", 4)=6)
> >    SET STEP ON
> > ENDIF
> > 

> >
> > Now you don't have to worry about leaving unwanted STARTDEBUG statements in the code. When you compile the project to an EXE then the TestMode value will be set to FALSE.
>
> Thanks,
>
> Warm Regards,
> mk.
Hi,

Are you sure? You are working in VFP9 in this version command
Set Step on
is neglected. In previous versions you had the error "window unknown".
However I think that there is a good reason to make your own call to Set Step on<\vfp> e.g. it is handy to disable timers when you are in the debugger.


Regards,
Koen


Coding without the use of m. is not generic and should be qualified as recreational

ENTIRE THREAD

Debugger Posted by Madan Mohan_DELHI @ 12/24/2011 2:50:12 PM
RE: Debugger Posted by mk sharma @ 12/24/2011 4:03:56 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/24/2011 4:24:09 PM
RE: Debugger Posted by mk sharma @ 12/24/2011 4:31:56 PM
RE: Debugger Posted by Greg Green @ 12/24/2011 5:04:52 PM
RE: Debugger Posted by mk sharma @ 12/24/2011 5:24:55 PM
RE: Debugger Posted by Koen Piller @ 12/25/2011 12:32:14 AM
RE: Debugger Posted by tushar @ 12/24/2011 6:54:23 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/25/2011 9:11:23 AM
RE: Debugger Posted by mk sharma @ 12/25/2011 11:07:04 AM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/25/2011 12:17:22 PM
RE: Debugger Posted by mk sharma @ 12/25/2011 12:28:46 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/25/2011 12:47:47 PM
RE: Debugger Posted by Koen Piller @ 12/25/2011 1:05:50 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/25/2011 1:19:16 PM
RE: Debugger Posted by Koen Piller @ 12/25/2011 2:57:04 PM
RE: Debugger Posted by mk sharma @ 12/25/2011 1:26:22 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/25/2011 1:51:38 PM
RE: Debugger Posted by mk sharma @ 12/25/2011 2:11:45 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 12/26/2011 5:58:10 PM
RE: Debugger Posted by mk sharma @ 12/26/2011 6:13:23 PM
RE: Debugger Posted by mk sharma @ 12/25/2011 12:20:42 PM
RE: Debugger Posted by Tamar Granor @ 12/27/2011 2:43:10 PM
RE: Debugger Posted by Madan Mohan_DELHI @ 1/11/2012 2:29:59 PM