Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Small Feature Request - DeleteWatch


Hi Tobias,

Current Gurock.SmartInspect.dll Version:

I have a small feature request - the ability to Delete a specific watch from the list of watches via code. I don’t want to do a ClearWatches(), but rather something like the following to remove that specific watch from the list:

ClearWatch(Level.Debug, “varname”);

This would be very handy for a multi-threaded app I’m developing - as threads are created and destroyed, I could easily see different counters that relate to a specific thread in the watch window, and remove the counts for threads that are no longer active. Something like:

Thread 1 Bytes Processed = 100
Thread 2 Bytes Processed = 60

once “Thread 2” completes, it would remove the watch, like so:
Thread 1 Bytes Processed = 100

Make sense? Or is there a way to do this already?

Thanks, and keep up the good work!



Hello Todd,

Thanks for your posting. Currently there is no way to do this, but I can certainly see where this feature make sense. I added it to our feature request list. In the meantime, a workaround might be to set a watch to a special value if the related thread has exited, maybe -1 or 0 (so that you can easily ignore these values when looking at the watches toolbox).