online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdbool.h> #include <stdio.h> #define DEBUG_LEVEL 1 #if (DEBUG_LEVEL > 0) #define DEBUG_PRINTF(level, ...) \ do { \ if (level < DEBUG_LEVEL) \ { \ printf(__VA_ARGS__); \ } \ } while (0) #else #define DEBUG_PRINTF(level, ...) \ do { } while (0) #endif void do_other_thing () { return; } int main() { bool flag = true; if (flag) DEBUG_PRINTF (0, "Hello\n"); else do_other_thing(); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue