필터 지우기
필터 지우기

How do you debug python parts in your application?

조회 수: 4 (최근 30일)
Matthias Mayer
Matthias Mayer 2020년 6월 5일
편집: Matthias Mayer 2020년 6월 5일
When handling self-written python classes / objects in MATLAB how do you handle debugging?
So far I tried:
  • pdb.set_trace at position where I want to start debugging the python parts resulted in errors:
Error using bdb>dispatch_line (line 70)
Python Error: BdbQuit
Error in bdb>trace_dispatch (line 51)
  • trying to use outOfProcess execution of python (which might allow attaching an external python debugger) hangs when loading a self-written module, e.g.:
if count(py.sys.path, python_modpath) <= 0
insert(py.sys.path, int32(0), python_modpath);
end
py_mod_planner = py.importlib.import_module(<custom module>);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by