Thread.Sleep(Timeout.Infinite) = debugger engine failed to initialize #250
Description
STM32F4Discovery, VS2013
Debugger engine init fails (every next start debug) when Thread.Sleep(Timeout.Infinite) in Main procedure. VS output window:
Looking for a device on transport 'USB'
Found device port 'USB' with ID '8a381d09-b2d4-4ff8-a3fe-0e6a36db391b' for transport 'Usb'
Starting device deployment...
Attempting to connect to device 'USB:a7e70ea2' Iteration 0
Opening port ?\usb#vid_0483&pid_a08f#5&87a71d2&0&4#{d32d1d64-963d-463e-874a-8ec8c8082cbf}
Attaching debugger engine...
... debugger engine attached!
Querying device assemblies...
Found Assembly mscorlib 4.4.0.0
Found Assembly Microsoft.SPOT.Native 4.4.0.0
Found Assembly Microsoft.SPOT.Hardware 4.4.0.0
Found Assembly Microsoft.SPOT.Hardware.Usb 4.4.0.0
Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.4.0.0
Found Assembly Windows.Devices 4.4.0.0
Found Assembly MFConsoleApplication1 1.0.0.0
Attempting deployment...
Incrementally deploying assemblies to device
Deploying assemblies for a total size of 2948 bytes
Assemblies successfully deployed to device.
Restarting interpreter...
Attaching to device...
Waiting for device to initialize...
The debugging target and the debugger engine failed to initialize because of unspecified device errors.
The debugger engine thread has terminated unexpectedly with error 'Could not reconnect to the debugging target after rebooting it.'.