I'm probably be getting way deep over my head in this since I'm not a Django user and stuff like command completion is a little bit open- ended.
However pydb (http://bashdb.sf.net/pydb) has some support for command completion and at least tries to save it's history across sessions in a file called ~/.pydbhist if you have "set history save on". It also has some support for ipython; possibly it will be a little better in the next releases of ipython and pydb. In recent pydb releases "set_trace" is called "debugger", since I think that's a more natural name. (However for die-hard Pythonistas, "set_trace" will still work.) But having put in a plug for pydb, I'm not sure I'd recommend this unless you are willing to dig in to fix problems you find really annoying. Hopefully pydb may be a little better organized for fixing problems, but probably not by much and it could stand quite a bit of rewrite. Some of the issues in command completion have been written about here: http://mail.python.org/pipermail/python-ideas/2007-February/000202.html And I'll add to the above one other practical issues regarding command completion: it's been a real pain to deal with the surrounding context. For example, if invoked via Emacs gud you have one set of protocols and if ipython another, and if a regular term another, and if Emacs calling ipython calling pydb..., you get the idea. If you want to not deal with pydb but want to improve pdb instead, probably adding history across sessions is the easiest thing to fix. Basically you'd need to add calls to readline.read_history_file() and readline.write_history_file(). (Of course, you could consult the pydb code for how to do that.) Lastly, I don't have any time to work on pydb, so I hope this helps. Good luck. On Mar 10, 12:44 am, "Greg Donald" <[EMAIL PROTECTED]> wrote: > On 3/9/07, Ned Batchelder <[EMAIL PROTECTED]> wrote: > > > PDBlets you do what you want. > > Yup.. thanks. > > Is there a way to get tab completion working? Or make it use ipython? > I seem to have command history, but not across sessions? > > -- > Greg Donaldhttp://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

