Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Boudewijn Lutgerink
 To: Joriveek Joriveek
  Where is Joriveek Joriveek?
 Joriveek Joriveek
Subject: RE: Debugging a Visual FoxPro App
Thread ID: 34084 Message ID: 34105 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Errors & Debugging
Date: Tuesday, December 09, 2003 9:15:41 AM         

> I found Debugger in Visual FoxPro is too difficult to handle. I rather choose to remove bugs manually in the code rather than starting the debugger.
> Anyhow I have a question here on the debugger, if your answer does make any difference in my opinion on VFP, I have a resource file/include file for all the messages being displayed which I referenced in each of my program and form etc.,etc.
> When I asked to run the debugger on my main.prg, it can't idenfity my custom messages (which were mapped in my include).
> Any idea how can I tell to the debugger that I have a include file where I have defined all these custom messages.
> Thanks
> J.

The whole point here is that the named constants you have in the include file are used during compilation only and not during runtime.
That is one of the reasons you don't have to include .H files in the project, you even don't have to ship them with the exe.
During development you can find the named constants from the includefiles with typing zdef (followed by a space), any defined constant in the codesnippet or in any includefile is then visible in a popup list (at least in VFP8)
The reason the debugger cannot 'see' the value of the constants is due to the fact that these constants are replaced with the value they hold during compilation.
A short-coming? maybe so, maybe not, it depends on how you look at it.
Maybe it is something for the wishlist of VFP9. Consider it placed on the wishlist. (both EL and UT)

Boudewijn LutgeĀ®ink
It's better to drive safely in five o'clock traffic than be featured on the six o'clock news.


Debugging a Visual FoxPro App Posted by Joriveek Joriveek @ 12/8/2003 6:01:48 PM
RE: Debugging a Visual FoxPro App Posted by Boudewijn Lutgerink @ 12/9/2003 9:15:41 AM