ppstep: Interactive C/C++ preprocessor macro debugger
11 days ago
- Macros
- C/C++ preprocessors
- Debugging
- C and C++ preprocessors allow users to write code through macros, which can be hard to follow but provide high abstraction levels
- PPstep is a debugger for macro writers to debug and refactor macros effectively
- PPstep allows single-stepping through macro expansion, setting breakpoints on macros, and backtracing macro expansions
- To use PPstep, clone the repository, ensure a C++17-supported compiler, build Boost, and run ppstep with your source file
- PPstep supports preprocessor flags like include directories, defining and undefining macros
- During preprocessing, you can use commands like step, backtrace, forwardtrace, break, continue, and expand for visualization and debugging