Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python debugging is great when you're strictly debugging Python code. Placing a `breakpoint` or spinning up an IPython instance to investigate the issue via `import IPython; IPython.embed()` makes life breezy. For neovim, you can send code to the ipython REPL easily via vim-slime.

I've never found myself debugging the underlying C++ code unless developing a C++ extension. But is it really that hard? Just point lldb to the python process and run your script in lldb.

If the C++ is not yours & assuming it's a mature lib (e.g. PyTorch): it's probably an error caused by you in Python land.



Both the C++ and Python are mine. I have cases of both C++ calling Python, and Python calling C++. Problems could be on either side.

The problem is how to step into one from the other, you really can't as far as I know.

The python parts aren't standalone enough that it could just be run on its own, there's so much setup involved prior to that point that it can really only be run from the top-level user controls.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: