IDE-997

Avoid calls to remote debugger on UI thread.