VS Code's Python extension does a lovely job of debugging VisiData. I run it one of two ways:
- When I'm working on a specific task, I add a specific run string to launch.json to start it. I typically run VisiData inside the integrated terminal.
- For more ad-hoc/exploratory stuff, I'll start VisiData from tmux and use VS Code's process picker to attach it.
Key pieces that need to be in place for this to work:
- Have VisiData and all dependencies installed into a virtual environment, and activate that virtual environment in VS Code.
- Make sure VisiData is installed with
-eso your breakpoints work.