Skip to content

cnnrznn/pybugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

pybugger

Easily insert debugging print statements into C / C++ codes.

When debugging segmentation faults and other common C/C++ errors, it is often helpful to insert print statements into code to quickly determine the point of failure. This is meant to be a simple tool to do exactly that. Instead of having to manually insert print statements, this code will parse the code file and insert debugging statements at the beginning of all functions and branching statements. Later, one can use the unique print statements to pinpoint the line of failure in the code.

This is not meant to replace tools like gdb. It is meant to be used to quickly locate lines that may be causing errors. If code is written such that similar data types are created and destroyed in similar ways, this tool will make it easy to determine which allocation/deallocation is causing the error.

Warning: input source files are expected to be written in in a clean style. There should only be one opening brace per line. Code written "in line" will cause problems.

About

Easily insert debugging print statements into C / C++ codes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published