Skip to content

radojicic23/pursuit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

 /$$$$$$$  /$$   /$$ /$$$$$$$   /$$$$$$  /$$   /$$ /$$$$$$ /$$$$$$$$
| $$__  $$| $$  | $$| $$__  $$ /$$__  $$| $$  | $$|_  $$_/|__  $$__/
| $$  \ $$| $$  | $$| $$  \ $$| $$  \__/| $$  | $$  | $$     | $$   
| $$$$$$$/| $$  | $$| $$$$$$$/|  $$$$$$ | $$  | $$  | $$     | $$   
| $$____/ | $$  | $$| $$__  $$ \____  $$| $$  | $$  | $$     | $$   
| $$      | $$  | $$| $$  \ $$ /$$  \ $$| $$  | $$  | $$     | $$   
| $$      |  $$$$$$/| $$  | $$|  $$$$$$/|  $$$$$$/ /$$$$$$   | $$   
|__/       \______/ |__/  |__/ \______/  \______/ |______/   |__/

Pursuit🚨

License: MIT

Debug your C program easy and like a pro with pursuit debugger. It's very easy to use!

Run

  • Move debugger.h in your directory.
  • Include debugger in your C file. See test.c and try yourself.
#include "debugger.h"

Hints

  • Chars have type int, so you have to convert them into char type to print them as actual chars:
debug_raw("Find the", (char)'I'); // returns => Find the I
  • To remove all debugging output quickly:
#define NDEBUG
#include "debugger.h"


int main() {
    int number = 10;
    debug(number); // return nothing
    return 0;
}
  • Quick debugging (include the debugger header file wherever you want it):
int function() {
    #include "debugger.h"
    
    int i = 2;
    int j = 3;
    
    debug(i, j);// returns // i = 2
                          // j = 3
    
    return i + j;
} 

int main() {
    function();
    // debug(function()); // => error (because it's only included inside function)
    return 0;
}

About

Debug like a pro in C with pursuit debugger.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages