Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Untangling spaghetti code
Message
From
24/02/2008 09:16:53
 
 
To
23/02/2008 00:10:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01295648
Message ID:
01295842
Views:
10
>Hi
>I have been given a very large DOS application, at worse I will probably end up babysitting it. At best I will get to replace it, either way I need to understand what it does and how it works, anybody got any hints to the best way of going about this? Any utilities that might help?

The Code References tool is your friend. Even if you have to keep the app in FP/DOS, you can work on it in VFP. Use Code References to find things.

Also, create a new project, add the main program and choose
Rebuild Project. That'll let you see what code is actually used (though you have to be careful because anything pulled in by a macro or other indirect reference won't be added).

The Debugger is also your friend. Walk the code. Run the main program with the Debugger open and step through key parts.

If you're running this in VFP, add DEBUGOUT statements liberally to help you see what's going on.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform