Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send an EOF in Eclipse's debugger console

Tags:

c

eclipse

I have a program that takes console input that I'm trying to debug. Sending an EOF (Ctrl+D in shell) is important to its function; but Ctrl+D doesn't send one in Eclipse's debugger console.

This should be super simple, but Google (and my limited experience) yields nothing. Thanks so much for any help!

like image 260
Charles Offenbacher Avatar asked Mar 31 '11 03:03

Charles Offenbacher


2 Answers

I just found a solution to this problem:

When you finish entering your inputs on console, click on another window (editor, Project Explorer, etc.), then click back on console. Hitting Ctrl + Z will work now.

like image 175
Matt Avatar answered Sep 28 '22 01:09

Matt


It's a bug, see here:

Passing End of Transmission (Ctrl + D) character in Eclipse CDT console

like image 21
Matt Avatar answered Sep 28 '22 01:09

Matt