tranSymbolics

Super Stepper: Hybrid Debugging of Python‒to‒C++ Deep Learning Workflows

Abstract

We present Super Stepper, a hybrid runtime debugging system enabling synchronized introspection and step control across both Python and C++ layers in deep learning frameworks. Targeting PyTorch and HuggingFace Transformers, it integrates source-level breakpoints, symbolic stepping, and remote runtime triggers via the TranSymbolics protocol.

1. Motivation

Deep learning frameworks like PyTorch implement a Python API layered atop an optimized C++ backend. Python debuggers can trace control flow, but lose visibility when execution crosses into compiled or CUDA layers. Native debuggers lack Python-layer context. This creates a blind spot at the boundary.

2. Overview of Super Stepper

Each "step" is a symbolic pause at a transition point. Triggered by input, context, or controller.

3. Python Integration

4. C++ Runtime Control

Insert SuperStepperPause() calls in compiled ops.

inline void SuperStepperPause() {  std::cout << "[SuperStepper] paused" << std::endl;  std::cin.get();}

5. TranSymbolics Protocol

6. Use Cases

7. Implementation Notes

8. Future Work

9. Conclusion

Super Stepper bridges the Python↔C++ divide with symbolic control, giving developers fine-grained visibility and power over hybrid model execution. It becomes a core debugging primitive within the TranSymbolics system.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24