michail alexakis <[email protected]> writes:

> Hello,
>
> First of all, congratulations on your work.
> I have to say that i was really excited when i discovered PuDB because it
> was just adding PDB the kind of functionality i missed
> (like being able to see highlighted portions of your code).
>
> I tried to invoke PuDB while at the same time the debugee program is fed
> input from STDIN.
> I tried something like (i am developing a Pylons-based project):
>
> pudb /path/to/paster post ${CONFIG} ${TARGER_URI} < data.json
>
> and it fails with:
>
>   File
> "/home/ckaner/var/ckan-demo/pyenv/lib/python2.6/site-packages/urwid/raw_display.py",
> line 520, in get_cols_rows
>     buf = fcntl.ioctl(0, termios.TIOCGWINSZ, ' '*4)
> IOError: [Errno 22] Invalid argument
>
> Is there a solution (or trick) to overcome this?

Here's a hack that might work for you:

- Open a new terminal
- Find the pty it is attached to
- Attach your debuggee's stdin/stdout to that pty

HTH,
Andreas

_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb

Reply via email to