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?
 Koen Piller
 To: Hans Leander
  Where is Hans Leander?
 Ohio - United States
 Hans Leander
Subject: RE: Debug
Thread ID: 394117 Message ID: 394141 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Monday, December 30, 2013 10:06:52 PM         

> > Hello:
> >
> > When I set SET STEP ON, I have to click through an impossible amount of code before I come to an error. Is there no way to just click something saying "Step on until you get an error, and then show me the code that erred!"?
> >
> > Thanks,
> >
> > Hans L
> Thank you guys.
> I click on a menu item, and Foxpro quits. Nothing wrong in the menu item code. When I SET STEP ON, I have to go through a tremendous amount of code to get to the error (can't be done). When I click "Run to cursor", Foxpro quits (no error message).
> maybe I have to set error on or something similar (did someone say that). I'll tr and will come back.
> Hans L


I understand you have an unexpected quiting of FoxPro when you click on a particular menuitem but you face too much coding to explore to find out what makes VFP closing your application.
If my understanding correct than put following line in your application startup:

Now when the debugger opens you click in the debugger main menu on Window->Callstack and you should see the line which causes the shutdown.




Debug Posted by Hans Leander @ 12/30/2013 7:29:09 PM
RE: Debug Posted by Vilhelm-Ion Praisach @ 12/30/2013 7:32:15 PM
RE: Debug Posted by Tore Bleken @ 12/30/2013 7:45:59 PM
RE: Debug Posted by Stefan Wuebbe @ 12/30/2013 7:48:43 PM
RE: Debug Posted by Pete Sass @ 12/30/2013 7:54:32 PM
RE: Debug Posted by Hans Leander @ 12/30/2013 8:22:10 PM
RE: Debug Posted by David Mustakim @ 12/30/2013 8:39:54 PM
RE: Debug Posted by Koen Piller @ 12/30/2013 10:06:52 PM
RE: Debug Posted by Hans Leander @ 12/31/2013 3:00:42 AM