Open
Description
There is a timing issue with the shutdown sequence of the DebugAdapter which occasionally causes test hangs because the terminated
event is not received. My guess is that this event never gets fully sent because of the timing of the shutdown sequence relative to some event handlers that get fired at that time. Compare the following two log files, the invocation state changes are interesting.
GoodRun.log.txt
BadRun.log.txt
There are some additional notes in the BadRun.log.txt file at the end.
It's likely that the shutdown sequence will need to be rethought so that the order of events is predictable and all messages get sent before the process terminates.