nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

Debugging program that uses stdin #63

Closed bolt-blue closed 2 years ago

bolt-blue commented 2 years ago

Is there a reasonable way yet to debug a process that outputs to stdout and reads input from stdin - not unlike an extremely basic ncurses?

I've been reading this https://github.com/nakst/gf/issues/26 and the documentation on log-window, but it doesn't seem suitable for this use case.

aolo2 commented 2 years ago

You could probably launch your application in a regular terminal, and then attach to it from gf using the PID?

bolt-blue commented 2 years ago

Thanks @aolo2, it sort of worked. Definitely might be usable. But a bit janky; not sure why. but there's a bit of a disconnect. Not sure how to describe it

nakst commented 2 years ago

I'm happy to take suggestions for how to improve the workflow for attaching to processes.

bolt-blue commented 2 years ago

@nakst Glad to hear :) I will have to experiment more and hopefully can give you some decent feedback. And thanks for the work, it's so far the only front end to gdb I like using.

nakst commented 2 years ago

Closing this issue now. Instead, comment on issue #26 for discussing debugging programs using stdin/stdout, or create a new issue to discuss the process attach workflow.