Native Python debugging in TotalView

Native Python debugging lets you debug Python programs directly in TotalView, with Python programs as the primary debugging target.

For supported platforms, Python versions, parallel Python modules, and requirements, see Python debugging supported platforms and requirements.

With native Python debugging, you can:

  • Launch Python programs under TotalView control

  • Debug single-process and parallel Python programs that use modules such as mpi4py or multiprocessing

  • Set and save breakpoints in Python source code

  • Control execution using step and continue operations

  • Inspect Python variables and data structures

  • Evaluate Python expressions in Data View, Local Data View, and CLI workflows

How this differs from mixed-language debugging

TotalView also supports mixed-language Python debugging for applications that combine Python with C or C++. In mixed-language debugging, execution is typically controlled from compiled-language contexts and debugging focuses on cross-language interaction.

Native Python debugging uses a different model:

  • Python programs are the primary debugging target

  • Breakpoints and execution control are applied directly to Python code

  • Debugging workflows focus on Python program behavior rather than cross-language interaction

For information about mixed-language Python debugging, see Overview.

Related Topics

Control Python source symbol tables

Native Python debugging limitations

TV::python_multiprocessing