Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Untangling spaghetti code
Message
De
24/02/2008 09:16:53
 
 
À
23/02/2008 00:10:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01295648
Message ID:
01295842
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform