cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.9k stars 499 forks source link

User input in gdbgui #336

Closed shrinivas96 closed 4 years ago

shrinivas96 commented 4 years ago

Is your feature request related to a problem? Please describe. Hello. This may be a very trivial thing that only I am unable to do. I am sure what I am about to ask already exists and only I am not able to find it. It is also possible that this question/request is at the wrong place. Please point me in the right direction if that's the case. My doubt/question: (C++) How do I enter a keyboard input when I reach a cin >> var; in my code? There doesn't seem to be a way to enter that value while using the GUI. I am able to enter a value when I use the cli at the bottom of the browser page that says: (gdb) enter a gdb command. To interrupt inferior, send SIGINT. I have to do the r and then n to get to that part. But I can do this in gdb from terminal as well.

Describe the solution you'd like A field that can get activated when it recognises that the program is waiting for a user input?

Describe alternatives you've considered NA

Additional context NA

cs01 commented 4 years ago

See the section on redirecting cli output https://www.gdbgui.com/faq/

If you redirect output it should behave more like you expect.

cs01 commented 4 years ago

A new terminal dedicated to I/O has been added to the frontend in gdbgui v0.14.