Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
move and document pdb API #328
There's an API 'morepath.pdb', which you can use instead of 'pdb' to start the debugger so it skips Reg and a few other things. It's handy for debugging Morepath.
I just got a report that 'morepath.pdb' by importing from 'pdb' also imports 'readline' which in some circumstances can trigger an issue with code that tries to override readline such as pyreadline. While I think this ought not to happen in the first place and importing 'readline' should be safe, it did happen in practice and that weighs more strongly.
A way to make this error less likely to occur would be to move it away from
While we're at it we should also document it in the public docs.