'Why does the debugger in KDB sometimes not show in 'interactive' mode?

I've got a function where I'm throwing a deliberate error to pause execution and enter interactive debug.

I have set \e 1.

When the KDB REPL encounters it, it pauses execution as expected, but the debugger doesn't actually appear. When I finally enter \, it prints the debugger output, like it was printing to an invisible terminal, but then drops to the normal namespace.

What am I doing wrong?

Video of the problem:

https://www.loom.com/share/db9ee83e7d8e4fb7bb6b454b49ec9cdc

kdb


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source