Avoid the most serious side effects of the debugger plugins inability
to handle direct debugging and global debugging of the same function at
once. There are still some weird side effects (like debugging being split
between two sessions), but it doesn't crash and burn. A more complete
fix requires plugin changes, so we need to be able to cope with this at
the client side as gracefully as possible to allow for older plugins.