Check if debugger is running on connect, fix #2