ipdb icon indicating copy to clipboard operation
ipdb copied to clipboard

Can't see the output of ipdd==0.8.1 when used with behave==1.2.5

Open kowalcj0 opened this issue 10 years ago • 2 comments

Hi All,

After upgrading ipdb to v0.8.1 and behave to v1.2.5, ipdb stopped working properly. Basically when execution stops at the breakpoint, and you issue any of the ipdb commands then you won't see the output of that command. Here's an example repo that you can use to reproduce the issue: https://github.com/kowalcj0/behaveipdb

btw. I wasn't able to tell whether it's an issue with ipdb or behave so I've reported it on both projects' github repos.

kowalcj0 avatar Aug 18 '15 11:08 kowalcj0

I would guess that behave, like nose, hijacks stdout. Prior to 0.8.1, ipdb would firmly "acquire" stdout. Since 0.8.1, we do it only if nose has been imported.

I knew it was a smelly hack.

I will need to think how to make something less smelly that also works with behave.

Any suggestion is welcome though.

PS: Sorry for being late with answering.

gotcha avatar Feb 23 '16 08:02 gotcha

Can you try code from https://github.com/gotcha/ipdb/pull/84 ?

The README explains how to explicitly ask for stdout fiddling:

https://github.com/gotcha/ipdb/tree/fix_stdout#issues-with-stdout

gotcha avatar Feb 23 '16 10:02 gotcha