• <small id='iuD4o'></small><noframes id='iuD4o'>

    1. <tfoot id='iuD4o'></tfoot>
    2. <legend id='iuD4o'><style id='iuD4o'><dir id='iuD4o'><q id='iuD4o'></q></dir></style></legend>

        <bdo id='iuD4o'></bdo><ul id='iuD4o'></ul>

    3. <i id='iuD4o'><tr id='iuD4o'><dt id='iuD4o'><q id='iuD4o'><span id='iuD4o'><b id='iuD4o'><form id='iuD4o'><ins id='iuD4o'></ins><ul id='iuD4o'></ul><sub id='iuD4o'></sub></form><legend id='iuD4o'></legend><bdo id='iuD4o'><pre id='iuD4o'><center id='iuD4o'></center></pre></bdo></b><th id='iuD4o'></th></span></q></dt></tr></i><div id='iuD4o'><tfoot id='iuD4o'></tfoot><dl id='iuD4o'><fieldset id='iuD4o'></fieldset></dl></div>

        Python 调试器 (pdb) 停止处理向上/向下箭头,而是

        时间:2023-09-12
        <legend id='d8SXU'><style id='d8SXU'><dir id='d8SXU'><q id='d8SXU'></q></dir></style></legend><tfoot id='d8SXU'></tfoot>

          <tbody id='d8SXU'></tbody>

        <i id='d8SXU'><tr id='d8SXU'><dt id='d8SXU'><q id='d8SXU'><span id='d8SXU'><b id='d8SXU'><form id='d8SXU'><ins id='d8SXU'></ins><ul id='d8SXU'></ul><sub id='d8SXU'></sub></form><legend id='d8SXU'></legend><bdo id='d8SXU'><pre id='d8SXU'><center id='d8SXU'></center></pre></bdo></b><th id='d8SXU'></th></span></q></dt></tr></i><div id='d8SXU'><tfoot id='d8SXU'></tfoot><dl id='d8SXU'><fieldset id='d8SXU'></fieldset></dl></div>
          <bdo id='d8SXU'></bdo><ul id='d8SXU'></ul>

                1. <small id='d8SXU'></small><noframes id='d8SXU'>

                2. 本文介绍了Python 调试器 (pdb) 停止处理向上/向下箭头,而是显示 ^[[A的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我在 Ubuntu Linux 11.04 (natty) 机器上的 virtualenv 中使用 python 2.6.我的 (django) python 代码中有这段代码:

                  I am using python 2.6 in a virtualenv on an Ubuntu Linux 11.04 (natty) machine. I have this code in my (django) python code:

                  import pdb ; pdb.set_trace()
                  

                  为了启动 python 调试器 (pdb).

                  in order to launch the python debugger (pdb).

                  直到今天,这一切都很好.但是现在当 pdb 启动时,它可以用于调试和运行以及断点等,但是当我按 向上箭头 显示上一个命令时,它会打印 ^[[A一个不上去.当我键入内容并按 Home 时,它会打印 ^[OH 而不是移动光标.

                  Up until today, this worked fine. But now when the pdb starts, it works for debugging and running and breakpoints etc, but when I press the up arrow to show the previous command it prints ^[[A instead an doesn't go up. When I type something and press Home, it prints ^[OH instead of moving the cursor.

                  我可以使用 up/home/etc.在启动我的 python django unittests(它有 pdb 调用)的 bash 终端中很好.

                  I can use up/home/etc. fine in the bash terminal which launches my python django unittests (which has the pdb call).

                  发生了什么事?如何修复我的 pdb?我的 readline 出了什么问题?

                  What's going on? How do I fix my pdb? What's wrong with my readline?

                  推荐答案

                  由于某种原因,您似乎缺少 readline 包.只需键入 pip install readline 即可安装它,它应该会按预期运行.如果您不在 venv 中,请记住以超级用户身份输入.

                  Looks like from some reason you are missing the readline package. Simply install it by typing pip install readline and it should behave as expected. Remember to type it as superuser if you're not in venv.

                  这篇关于Python 调试器 (pdb) 停止处理向上/向下箭头,而是显示 ^[[A的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:当我使用 Windows 键盘键入非 ASCII 字符时,我得到 下一篇:使用 python xlib 全局捕获、忽略和发送 keyevents,识

                  相关文章

                  最新文章

                    <tfoot id='51Scf'></tfoot>
                      <bdo id='51Scf'></bdo><ul id='51Scf'></ul>

                    <small id='51Scf'></small><noframes id='51Scf'>

                      <i id='51Scf'><tr id='51Scf'><dt id='51Scf'><q id='51Scf'><span id='51Scf'><b id='51Scf'><form id='51Scf'><ins id='51Scf'></ins><ul id='51Scf'></ul><sub id='51Scf'></sub></form><legend id='51Scf'></legend><bdo id='51Scf'><pre id='51Scf'><center id='51Scf'></center></pre></bdo></b><th id='51Scf'></th></span></q></dt></tr></i><div id='51Scf'><tfoot id='51Scf'></tfoot><dl id='51Scf'><fieldset id='51Scf'></fieldset></dl></div>
                      <legend id='51Scf'><style id='51Scf'><dir id='51Scf'><q id='51Scf'></q></dir></style></legend>