The debugger should be detached when the Inspector window closes, but it is not. This leads to unexpected slowdowns and a broken Scripts panel interface when the Inspector opened again (since the scripts are cleared.)
Created attachment 22821 [details] Proposed patch
Comment on attachment 22821 [details] Proposed patch r=me
Landed in r35798.