Code playgrounds
What is OnlineGDB? An introduction to the online compiler and debugger for C/C++
OnlineGDB is an online compiler and debugger for C/C++ that also supports other languages. It combines a code editor, compiler and debugger in the browser, using gcc/g++ as the compiler and gdb as the debugger. It is aimed at coders who hit crashes and tricky bugs.
- Tool
- OnlineGDB
- Made by
- OnlineGDB
- Official site
- onlinegdb.com
- Category
- Code playgrounds
Who makes OnlineGDB
OnlineGDB is published under the name OnlineGDB. The official website is linked below this article.
Official website: onlinegdb.com
What OnlineGDB is for
OnlineGDB is for running and debugging code without a local toolchain. It puts an editor, a compiler and a debugger in one place, so a program can be written, run and stepped through on the same page.
The site describes itself as the world's first online IDE with an embedded gdb debugger. That is the vendor's own description. The debugger provides stepping controls, and programs can read standard input, which matters for exercises and small programs that expect user input.
Who OnlineGDB is for
The vendor states two audiences: coders who use online IDEs, and coders debugging C/C++ code. It is aimed specifically at coders who hit crashes and tricky bugs, which fits a tool built around an embedded debugger rather than just a run button.
Notable capabilities
The capabilities below cover compiling, debugging, language support and sharing.
- C/C++ toolchain: uses gcc/g++ as the compiler and gdb as the debugger.
- Language list: includes Java, Python 3, Kotlin, PHP, C#, OCaml, Ruby, Perl and Pascal, among others.
- Debugger controls: the debugger provides stepping controls.
- Standard input: programs can read standard input.
- Sharing: projects can be shared as a live link or as a snapshot, and embed code is available.
- Snapshot expiry: snapshot links can expire after a day, a week or a month, or be kept forever; creating forever links requires being logged in.
- Keyboard shortcuts: the IDE has shortcuts for running, debugging, saving and beautifying code.
How OnlineGDB fits code playgrounds
Within code playgrounds, OnlineGDB leans toward debugging. Many playgrounds focus on running a snippet and showing output; this one adds an embedded debugger with stepping, so you can follow what the program does as it executes.
There are limits to note. Debug sessions are stopped after inactivity, and debug mode for Python programs is not yet supported, so the debugger is most relevant for C/C++ code.
For Snipspire's wider niche of snippet managers, code paste and developer snippet tools, the sharing options are the relevant part. A live link keeps a project current, a snapshot captures it at a point in time, and embed code lets a project appear on another page. The choice of snapshot expiry means a shared link can be temporary or permanent, with permanent links tied to being logged in.
Frequently asked questions
What is OnlineGDB used for?
It is used to write, run and debug code in the browser, especially C/C++. It combines a code editor, compiler and debugger.
Which compiler and debugger does OnlineGDB use?
It uses gcc/g++ as the compiler and gdb as the debugger.
Does OnlineGDB support Python debugging?
Python is in the language list, but debug mode for Python programs is not yet supported.
How long do OnlineGDB snapshot links last?
Snapshot links can expire after a day, a week or a month, or be kept forever. Creating forever links requires being logged in.
Which languages does OnlineGDB support?
Besides C/C++, the language list includes Java, Python 3, Kotlin, PHP, C#, OCaml, Ruby, Perl and Pascal, among others.
Snipspire is independent and is not affiliated with OnlineGDB. Product names belong to their owners. Features change; confirm details on the official website.