瀏覽代碼

Add examples to use valgrind and gdb with python

Samuel Thibault 4 年之前
父節點
當前提交
af06ba720b
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 $*