enable completions in the debugger

This PR enables completions while within the debugger, by figuring out which frame is currently active. This implementation should work properly with e.g. `tryCatch` and `withCallingHandlers`; at least it does in ad-hoc testing.