Hi Tobias,
Current Gurock.SmartInspect.dll Version: 2.3.0.6397
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");
ClearWatch("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!
Todd
Subscribe to forum
Forum
Small Feature Request - DeleteWatch
Page: 1
| Author | Post |
|---|---|
|
thlucas
|
#1 Sun Apr 20, 2008 9:20 pm
|
| Guest | |
|
#2 Mon Apr 21, 2008 11:49 pm
|
|
|
Administrator
Registered: Sep 2007
Posts: 133
|
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). |
Page: 1