[[ Bug 11940 ]] Ensure the debug context is not permanently in a state of error
Merge pull request #547 from runrevali/bugfix-11940

[[ Bug 11940 ]] Ensure the debug context is not permanently in a state o...