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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clearing watchlist 3

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
I am sure I have seen how to do this but I have forgotten ( must note it down!)

How does one clear the debugger watchlist?

Thanks

GenDev
 
You can right click on one item/line and "Delete Watch". I don't see an "official" way to delete all, but I know the watch items are stored in foxuser, so you can delete them there. Look for records with Id="WATCHEXPR".

Code:
USE SYS(2005) IN 0 AGAIN 
DELETE WHERE Id="WATCHEXPR"

Astonshingly, I just did so and the watchlist wasn't empty. I found another record with Deletion flag, afer SET DELETED OFF and it also had Type="*REFW" instead of the normal "PREFW" for preferences of windows.

Bye, Olaf.

 
...of course you could also pack after delete.

That makes foxuser records have 4 states: normal, deleted, deleted with confirmation (with * in Type), and really deleted (after the PACK).

Bye, Olaf.
 
We had this same discussion a few years ago. Several solutions were suggested. In the end, the person who asked the question decided that the easiest way was as follows:

1. Highlight the first item.

2. Press DEL.

3. Repeat until the list is empty.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Just for completeness, there's also:

Code:
CLEAR DEBUG

It does other things, but they may or may not be of consequence here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top