search

Home  >  Q&A  >  body text

python - vim下如何逐行调试程序?

如题,逐行、随时检测变量值。请问有好方法吗?

大家讲道理大家讲道理2899 days ago441

reply all(5)I'll reply

  • 怪我咯

    怪我咯2017-04-18 09:57:23

    Vim is just a text editor. It is too difficult for you to use it as an IDE. To debug Python line by line, you can just use pdb.

    reply
    0
  • 阿神

    阿神2017-04-18 09:57:23

    Print it yourself, or please choose IDE...

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:57:23

    In this case, you can only write more console.log();

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 09:57:23

    You can use pdb, but it may be better to use ipdb

    You can refer to:

    http://caimaoy.com/caimaoy_gi...

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:57:23

    It is probably not possible to debug the program, but some error messages can be printed during compilation. For example, when compiling java, you can see error messages in the console. That's all.

    reply
    0
  • Cancelreply