Browse Source

Add examples to use valgrind and gdb with python

Samuel Thibault 4 years ago
parent
commit
af06ba720b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      starpupy/examples/execute.sh.in

+ 2 - 0
starpupy/examples/execute.sh.in

@@ -34,5 +34,7 @@ fi
 shift
 
 set -x
+#PYTHONPATH=$pypath LD_LIBRARY_PATH=$modpath PYTHONMALLOC=malloc valgrind --track-origins=yes @PYTHON@ $pythonscript $*
+#PYTHONPATH=$pypath LD_LIBRARY_PATH=$modpath gdb --args @PYTHON@ $pythonscript $*
 PYTHONPATH=$pypath LD_LIBRARY_PATH=$modpath @PYTHON@ $pythonscript $*