Click Debug, Windows, Breakpoints, click New, Break at function, enter System.Threading.SynchronizationContext.SetSynchronizationContext
, and click OK.
It will give you a warning, which you should ignore. I tried it, and it does work.
Edit by Ian Ringrose
I also had to turn off the "Enable Just My Code" setting in the Debugging configuration.
Start Visual Studio 2008 and bring up Tools > Options > Debugging > General. If you are running under the Visual Basic Profile, you will need to check the box on the lower left of the Options Dialog marked "Show All Settings" before continuing (other profiles won't have this option).
Set the following settings:
Turn OFF the "Enable Just My Code" setting
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…