debugging a prog that uses stdin

debugging a prog that uses stdin

Post by Mark Komarins » Mon, 27 Apr 1992 02:52:58



I'm trying to debug a program with either xde or dbx, but it needs input
from stdin.  With dbx, it sometimes prompts me for the data, and continues
on without stopping until the end of the program.  xde just hangs and does
not let me type anything in, let alone stop the program.  Any ideas??

-Mark

--

Smile.  It makes people wonder what you're up to.

 
 
 

debugging a prog that uses stdin

Post by Lance Pick » Tue, 28 Apr 1992 23:02:34



|> I'm trying to debug a program with either xde or dbx, but it needs input
|> from stdin.  With dbx, it sometimes prompts me for the data, and continues
|> on without stopping until the end of the program.  xde just hangs and does
|> not let me type anything in, let alone stop the program.  Any ideas??
|>
|> -Mark
|>
|> --

|>
|> Smile.  It makes people wonder what you're up to.
|>

Mark,

  Have you tried typing input in the window you started xde from?
(Not the xde window itself).  Obviously to make this work you cannot
start xde in the background.
--
    ...Lance

-----------------------------------------------------------------------


Technology Products
Burlington, VT                          Phone: (802) 769-7104 (tie 446)
-----------------------------------------------------------------------

 
 
 

1. Kdevelop 1.X: Where is stdin in internal debug mode?

Okay folks,  I'm sure this has been answered before, but a search hasn't
revealed the answer to me. With both v1.1 and v1.3, attempting to debug a
terminal i/o app results in the program waiting for input from stdin that I
can't figure out how to provide. The docs are no help; one section says that
the stdout window is also a stdin window, and you CAN type in it and see what
you type, but this info doesn't reach the program.

Another section of the docs says that running the internal debugger will
launch kdbg sucked into the tools tab. This doesn't happen either.

I know I'm missing a piece of info since this behavior persists across
multiple versions; thanks in advance for getting me unstuck.

Befuddled,
  -Vince

Sent via Deja.com
http://www.deja.com/

2. Help with ISDN (please?)

3. Cannot debug X progs - no libX11.a!!

4. Another MO question...

5. which "graphics" lib used is used in rh install prog

6. System Performance and AIO

7. Debugging C++ progs on SUN systems

8. how to erase a file with bad name ?

9. Using GDB to debug a program that uses fork(2)?

10. How to debug using workshop when my program uses Xerces parser

11. Piping between C prog. and other interactive prog.

12. #!/prog vs. #! /prog

13. Any good books on "Linux Socket prog", also on "Linux Network prog"?