Hi all,
as we already know, the RaiseException approach is generally used for setting the thread name inside the VS IDE Threads window.
This works fine for the case when the number of thread name changes is low.
Otherwise the time while debugging grows up to 4-5x times (in our case) due to the thread name updates.
I am not familiar with VS integration approaches for my problem. However I would happily ask here if there is an event based approach for updating the thread name inside the VS 2013 Threads window from outside my C++ application, after a debugger break-point is hit or something similar. This would eliminate the need of setting the thread name each time in my C++ code and would be done only when the debugger break-point is hit -- and thus will not influence performance.
Basically this "plugin/addon" would have to:
- wait for a breakpoint to be hit
- iterate through all available threads in the active process
- grab the thread name from a private member (Thread::_name)
- update the VS IDE Threads window with the above thread name.
Any ideas if such a plugin/addon is already available? .. or how it could be created?
Kind regards,
Marius