I add the same error message but with a different function name :
To prevent an unsafe abort when evaluating the function
‘Microsoft.VisualStudio.Debugger.Runtime.Tracing.Refresh’ all threads
were allowed to run. This may have changed the state of the process
and any breakpoints encountered have been skipped.
This is how I got rid of this pesky bug :
In Visual Studio 2017 go to
Tools → Options → Debugging → General → Check ‘Use Managed Compatibility Mode’
thanks to this article :
https://www.codeart.dk/blog/2018/9/vs2017-debugger-timeout/