Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debug_logme.prg (helps find code)
Message
From
21/02/2014 08:24:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Debug_logme.prg (helps find code)
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01594877
Message ID:
01594877
Views:
52
The attached file is a program I use called debug_logme.prg. It helps me quickly track down where in some foreign program something is happening.

For example, if I need to know, "Where in this application is the record being added to table X?" I go in to table X and add an insert trigger which is "debug_logme('Tracking down insert record')" and then I go into the application and add a record. If I need to know, "Where is a particular column being updated?" then I add it to the column trigger and go into the application and do the operation which updates the column. Afterward I can examine the debug_logme.dbf table it creates, and it shows me the complete stack so I know where everything came from.

I have found this kind of helper to be a great time saver in tracking down code issues. You can insert it anywhere, but I mostly use it on table or field triggers to find out where a particular table or column is being affected.

Please report any bugs if you like. Thank you.
Reply
Map
View

Click here to load this message in the networking platform