In general, you cannot debug C ++ code directly using IPython. However, you can use the C ++ debugger to debug C ++ code.
Essentially, you tell your C ++ debugger to execute any process you need to run your code (this can be IPython itself), and set a breakpoint in C ++ code (your debugger will know to wait for the corresponding DLL to boot if it is in a DLL). From there, you debug your piece of code that runs in the IPython process.
source share