Hi Juce Team
I hope you are all right
To Enhance debuging experience on Release build on Visual Studio under Window
Especially for process that load thrird party libraries that create too many Threads
I propose to change the juce_Threads_windows.cpp of the current Juce 8.0.6 develop branch
From this current line 151 state
void JUCE_CALLTYPE Thread::setCurrentThreadName ([[maybe_unused]] const String& name)
{
#if JUCE_DEBUG && JUCE_MSVC
to this
void JUCE_CALLTYPE Thread::setCurrentThreadName ([[maybe_unused]] const String& name)
{
#if /**removed JUCE_DEBUG && */ JUCE_MSVC
if (!juce_isRunningUnderDebugger())
return;
In this case, the debug name of thread will be set only when a debuger is attached, in other hand, this function will do nothing as before.
Hoping this will helps.
All the best