mxnet
mxnet copied to clipboard
How can I debug mxnet with gdb when using python interface
When using mxnet python interface, is it possible to debugger mxnet( .so library load by python) to add break point with gdb or other tools?
use gdb to start python.
Hi, I use gdb to start python, and run a python test program; and do such instructions:
$ gdb python
(gdb) run test_deconv.py
Starting program: /usr/local/bin/python test_deconv.py
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff5fc01000 in ?? ()
(gdb) b ConvolutionOp::Forward
Function "ConvolutionOp::Forward" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (ConvolutionOp::Forward) pending.
(gdb) c
warning: `/Users/travis/build/MacPython/numpy-wheels/numpy/build/temp.macosx-10.6-intel-2.7/build/src.macosx-10.6-intel-2.7/numpy/core/src/multiarray/arraytypes.o': can't open to read symbols: No such file or directory.
warning: `/Users/travis/build/MacPython/numpy-wheels/numpy/build/temp.macosx-10.6-intel-2.7/build/src.macosx-10.6-intel-2.7/numpy/core/src/multiarray/einsum.o': can't open to read symbols: No such file or directory.
...(omit some warnings)
[Inferior 1 (process 19930) exited normally]
(gdb) bt
No stack.
I don't know whey it will exit after I insert a breakpoint to ConvolutionOp::Forward method? thanks for your help!
Any one know how to solve this problem?? thanks!
This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!