Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Source not available'
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00056375
Message ID:
00056786
Views:
25
> I regularly 'Debug' hard to find errors in my executables and the source code is right there in the trace window of the debugger
>line no's and all. When I run the main.prg directly it does what I expect it to do, it can't resolve references to
>other objects.... because its not an exe or an app.
>
>BTW I did try to rebuild as an app, same problem.
>
> One thing about the exe I'm talking about though, it is a top level form without the VFP Window could
>that have something to do with it?


Hi Greg,

Here's the rules as I understand them. To debug from within VFP, the EXE must be in same relative position to the source file as when the EXE was built. i.e. You cannot move the EXE and then run it and expect to be able to debug properly. Also, you can partially debug either after moving the EXE or when running the EXE outside of VFP, but only code that resides in class libraries, not PRG's.

SET SOAPBOX ON
Here is a hint when working with EXE's. Get rid of your SET PATH. Using SET PATH is a crutch. The project file is designed to track exactly where your files are located. There is no need to use a PATH statement to allow your program to erroneously pick up the wrong file.
SET SOAPBOX OFF

Darrel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform