You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following modification of the nanobind_example project:
#include <nanobind/nanobind.h>namespacenb=nanobind;
usingnamespacenb::literals;
NB_MODULE(nanobind_example_ext, m) {
m.doc() ="This is a \"hello world\" example with nanobind";
m.def("add", [](inta, intb) { __builtin_debugtrap(); returna+b; }, "a"_a, "b"_a);
}
Where I've added a __builtin_debugtrap() call (on macOS compiling with AppleClang). Trying to run the code as follows:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following modification of the nanobind_example project:
Where I've added a
__builtin_debugtrap()call (on macOS compiling with AppleClang). Trying to run the code as follows:Shows the program terminated with this message:
Basically
__builtin_debugtrap()does not break intolldb. I'm not sure if I'm missing anything to make it work?Beta Was this translation helpful? Give feedback.
All reactions