uhhh send the code as json to the backend, process it in a compiler there, send the output to the frontend Answer from Comfortable-Block102 on reddit.com
๐ŸŒ
OnlineGDB
onlinegdb.com
GDB online Debugger | Compiler - Code, Compile, Run, Debug online C, C++
Online GDB is online compiler and debugger for C/C++. You can compile, run and debug code with gdb online. Using gcc/g++ as compiler and gdb as debugger. Currently C and C++ languages are supported.
Online C
OnlineGDB is online IDE with c compiler. Quick and easy way to compile c program online. It supports gcc compiler for c.
Online C++
OnlineGDB is online IDE with C++ compiler. Quick and easy way to compiler c++ program online. It supports g++ compiler for c++.
Java
OnlineGDB is online IDE with java compiler. Quick and easy way to run java program online.
Python
OnlineGDB is online IDE with python compiler. Quick and easy way to compile python program online. It supports python3.
๐ŸŒ
Compiler Explorer
godbolt.org
Compiler Explorer
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C++, Rust, Go (and many more) code.
๐ŸŒ
CodeChef
codechef.com โ€บ ide
Online Compiler & IDE for Python, C++, C, Java, Rust - CodeChef
Compile & run your code with the CodeChef online IDE. Our online compiler supports multiple programming languages like Python, C++, C, JavaScript, Rust, Go, Kotlin, and many more.
๐ŸŒ
Reddit
reddit.com โ€บ r/django โ€บ how to create python ide similar to gdb online python
r/django on Reddit: How to create python IDE similar to gdb online python
March 15, 2024 -

I want to create a Python IDE using Django and JavaScript. I am facing an issue with taking user input when using the exec or eval functions in Python.

After further research, I came across subprocess and IPython, which seem like they could be used to create what I want, but I am still not very confident. Could you please suggest how to create a Python IDE using these tools or any other?

code = "print('Hello, my name is')\nk = input('Enter your name')\nprint(k)"
exec(code)

when i run the above code in the vs code by terminal then its

Hello, my name is
Enter your name

but when i run in Django then i didn't get

how to achieve same with Django?
code data will come from frontend.

๐ŸŒ
Exercism
forum.exercism.org โ€บ t โ€บ the-code-compiles-properly-with-online-gdb-compiler-but-here-it-gives-an-error-of-segmentation-fault โ€บ 6802
The code compiles properly with online gdb compiler but here it gives an error of segmentation fault - Exercism - Exercism
August 7, 2023 - I developed a code for the exercise of isogram. The codes compiles perfectly with online gdb compiler but here it creates an error of segmentation fault, I donโ€™t understand why. I am attaching my code below for referenceโ€ฆ
๐ŸŒ
Inari
devhunt.org โ€บ blog โ€บ debug-code-anywhere-with-online-gdb-debuggers
Debug Code Anywhere with Online GDB Debuggers
September 16, 2025 - Learn how online gdb debuggers allow developers to debug code from any device with a browser, eliminating the need to install local tools. Key features and examples of using breakpoints, stepping, and watching variables are covered.
Find elsewhere
๐ŸŒ
GNU Project
sourceware.org โ€บ gdb โ€บ documentation
GDB Documentation
December 22, 2023 - The GNU Press has printed versions of most manuals, including Debugging with GDB available. Documentation generated from the current sources are available online:
๐ŸŒ
Inari
devhunt.org โ€บ blog โ€บ step-through-code-line-by-line-using-online-gdb
Step Through Code Line-By-Line Using Online GDB
September 16, 2025 - Step through code line-by-line in the online GDB debugger without installation for precision debugging. Control execution flow, inspect variables, and visualize data to debug programs in many languages.
๐ŸŒ
Code with C
codewithc.com โ€บ code with c โ€บ blog โ€บ real-time debugging with online gdb compiler
Real-time Debugging With Online GDB Compiler - Code With C
January 13, 2024 - Uploading and running code for real-time debugging: Once youโ€™re in, itโ€™s time to upload your code! With a few quick keystrokes and clicks, you can upload your code and run it through the Online GDB Compiler, all while keeping a sharp eye out for any bugs or errors that rear their sneaky little heads!
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 75880897 โ€บ why-does-online-gdb-c-compiler-while-debugging-my-code-suddenly-stops
Why does online GDB c++ compiler while debugging my code suddenly stops? - Stack Overflow
Long run youโ€™ll probably be better off getting tools like this running locally, i.e. on your own computer. If you like GDB, you can get it via WSL on Windows; if you want to try a GUI debugger, Visual Studio Community has an excellent debugger ...
๐ŸŒ
VizHub
vizhub.healthdata.org โ€บ gbd-compare
VizHub - GBD Compare
Analyze updated data about the worldโ€™s health levels and trends from 1990 to 2023 from the Global Burden of Disease (GBD) study.
๐ŸŒ
Northern Illinois University
faculty.cs.niu.edu โ€บ ~byrnes โ€บ csci240 โ€บ onlinegdb.htm
CSCI 240 - Using the online GDB compiler and debugger for C/C++
There are many online C++ compilers for those that can't install a compiler on the device that is being used for the course. The new recommendation for CSCI 240 students is the compiler available at onlinegdb.com ยท https://www.onlinegdb.com/
Top answer
1 of 2
3

Whoops you have an infinite loop here

//This creates a LCV for the do loop below and sets it equal to 0.

int y = 0;

//This do loop generates the random number.
do
{
    //This generates a random time seed.
    srand(time(0));

    //This generates a random number between 1 and 99.
    ran = rand() % 100;

    //This while controls the do loop.
}while (y != 9);

y is initialized to 0 and you are looping while y!=9. And that is just the first error, there might be more.


Bug #2

int z = 1;
//This makes the program only create a random number the first pass through the loop.
if (z < 2)
{
    //This runs the random number generator function.
    return randomgen();

    //This sets the result of the function as the random number.
    randnum = randomgen();

    //This sets the random number to the current number.
    num = randnum;
}

After fixing infinite loop in randomgen(), You are immediately returning...

2 of 2
1

you have two problems in your code: the first one is that you have infinite loop in randomgen() function the condition in check against y - y != 9 but the value never update

int randomgen() 
{
    //This creates a variable to store the random number.
    int ran;

    //This creates a LCV for the do loop below and sets it equal to 0.
    int y = 0;

    //This do loop generates the random number.
    do
    {
        //This generates a random time seed.
        srand(time(0));

        //This generates a random number between 1 and 99.
        ran = rand() % 100;

        //This while controls the do loop.
    }while (y != 9);

    //This returns the random number for use in the rest of the program.
    return ran;
}

and the second one is even if you pass the loop in the function you exit main right away because the call to the function randomgen() is with return

if (z < 2)
{
    //This runs the random number generator function.
    return randomgen(); <-- **second problome**

    //This sets the result of the function as the random number.
    randnum = randomgen();

    //This sets the random number to the current number.
    num = randnum;
}
๐ŸŒ
Landing.Jobs
landing.jobs โ€บ home โ€บ an intermediate guide to debugging c code with online gdb c compilers
An intermediate guide to debugging C code with online GDB C compilers - Landing.Jobs
February 16, 2023 - Online GDB is a popular online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, and JS. It allows you to code, compile, run, and debug online from anywhere, with any device.
๐ŸŒ
Reddit
reddit.com โ€บ r/c_programming โ€บ it is possible to use csv type file in online gdb?
r/C_Programming on Reddit: It is possible to use CSV type file in online GDB?
March 24, 2025 -

I am doing a group project for school, and I am supposed to read data from an CSV type file. But when i try to read from it in the online GDB i get the following error message:

/usr/bin/ld:g2021_2022_ice.csv: file format not recognized; treating as linker script
/usr/bin/ld:g2021_2022_ice.csv:1: syntax error
collect2: error: ld returned 1 exit status

As far as i understand, the program is trying to compile the cvs file instead of the C file. Is there a way to fix this?

(The reason i am using an online GDB is because it is easier to work on in a group and share, and also access on different devices).

๐ŸŒ
WebCatalog
webcatalog.io โ€บ home โ€บ apps โ€บ software development โ€บ onlinegdb โ€บ desktop app
OnlineGDB - Desktop App for Mac, Windows (PC) - WebCatalog
OnlineGDB is a comprehensive online integrated development environment (IDE) designed for coding, compiling, and debugging various programming languages. It supports multiple C++ standards, providing users with a robust platform for source code ...
๐ŸŒ
LogicMojo
logicmojo.com โ€บ online-gdb-compiler
Online GDB Compiler By Logicmojo
It is an online compiler and debugger for common programming languages such as C, C++, Python, Java, PHP, Ruby, Perl, and others.