Use prompt_toolkit.application.create_app_session for debugger prompt (#13889)...
Use prompt_toolkit.application.create_app_session for debugger prompt (#13889)
Running the debugger prompt in the default `prompt_toolkit` session
causes issues when more than one prompt_toolkit app is running
simultaneously. I'm encountering this while trying to debug multiple
threads using [madbg](
https://github.com/kmaork/madbg). The errors look
exactly like those mentioned in
#12192. This commit solves this by using
the dedicated API from prompt_toolkit.
BTW, this PR combined with
#13311 should be enough to close
#12192.