bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.68k stars 467 forks source link

Is it possible to use with pybind11? #289

Closed QiangZiBro closed 1 year ago

QiangZiBro commented 1 year ago

Hi all! Pybind11 is a good tool for binding C++ APIs to Python. It seems that pybind11 converts errors of C++ to Python exceptions compulsorily, which is earlier than backward-cpp, in such case, we can't see a backtrace at the C++ level. Is it possible to solve this problem?

QiangZiBro commented 1 year ago

I checked it with a simple project, and it seems to be possible.