Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print from the Watch Window in Debugger

Status
Not open for further replies.

bobbarker

Programmer
Dec 20, 2001
83
GB
Is there a way I can print the contents of the watch window in the debugger to, e.g., a text file so I can then search the text file for an object or value?
I am developing within another 3rd party application that uses Visual Foxpro and can break into the programme and open debugger to assess which objects are open. I would like to be able search through a certain object to find a value.
May thanks in advance.

 
bobbarker,

You can't directly print the values shown in the watch windows, but you can print the expressions (including variable names and properties).

To do so, save the contents of the watch window in a "configuration file". Do that from the File menu, or by hitting Alt+F2. The result will be a text file (extension DBG), which contains one line for each watch window entry, in the format WATCH = <expression>.

Once you have that text file, you can do pretty well anything you like with it. I suppose you could even programmatically loop through all the expressions, obtaining the current value in each case (using the EVAL() function).

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top