I would recommand you to use pudb, which is pdb with an interface based 
on Urwid, and is perfect for Urwid application as it doesn't mess the 
screen. In addition, it can launch a ipdb interpreter at any point (but 
in this case you'll probably loose the echo, except if you do an 
os.system('reset'), but Urwid will be messed up then).

On 10/09/2014 16:06, Maxim Lacrima wrote:
> Okay, I was able to get it working to some extent.
>
> I just opened another terminal, and hardcoded `urwid.raw_display.Screen`:
>
> self._term_output_file = open('/dev/pts/8', 'wb', 0)
> self._term_input_file = open('/dev/pts/8', 'rb', 0)
>
> Now I can see urwid output on a different terminal, while debugging on
> another. This very ugly hack, so is there a better way?
>
>
> On 10 September 2014 16:28, Maxim Lacrima <[email protected]> wrote:
>
>> Hello!
>>
>> How would I run urwid app under pdb? If I run:
>>
>> python -m pdb examples/tour.py
>>
>> then the screen becomes cluttered because urwid writes to stdout and pdb
>> writes to stdout as well. The same problem is with stdin.
>>
>> Thanks.
>>
>> --
>> Regards,
>> Maxim
>>
>
>
>
>
>
> _______________________________________________
> Urwid mailing list
> [email protected]
> http://lists.excess.org/mailman/listinfo/urwid
>


_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to