epheien / termdbg

Terminal debugger for vim
MIT License
25 stars 5 forks source link

How to make this plugin work #8

Open mvds314 opened 2 weeks ago

mvds314 commented 2 weeks ago

Looks like a great and useful plugin, can't get it to work though.

My config looks like this: { "epheien/termdbg", cmd = "TermDebug" } And am using the lazy.nvim package manager under neovim

When I run :Termdbg pdb3 somefile.py, I get Error while processing function termdbg#StartDebug, and command not found: pdb3. (same for pdb, ipdb etc.)

Not sure what to do, pdb is something you import right, and not a command on your system.

epheien commented 2 weeks ago

You can encapsulate pdb into a script and put it in your PATH, such as:

#!/bin/bash
python3 -m pdb "$@"

A more recommended approach is: pip3 install ipdb and use ipdb3 instead of pdb