eclipse-cdt-cloud / eclipse-cdt-cloud/cdt-gdb-adapter

How can I receive input from the user in the terminal?

Open
#323 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
39
Forks
56
Avg merge
3d 9h
Merged PRs (30d)
2

Description

Hello everyone,

I'm currently facing an same [issue](https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/issues/158#issuecomment-562586626) while debugging a program that involves user input via scanf. I have set a breakpoint at the scanf line, but when I try to input data during debugging, there is no response.

I have tried using the command 'handle SIGTTIN nostop noprint', which I believe should help resolve this issue. However, even after applying this command, the debug session remains unresponsive.

Could someone please advise on how to correctly debug a program with user input via scanf while ensuring breakpoints are effective?
if any chance for open new terminal for the input time?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.