OIseekU
V2EX  ›  问与答

在 vs code 中调试 Python ,遇到不能打印的问题

  •  
  •   OIseekU · May 13, 2019 · 2414 views
    This topic created in 2581 days ago, the information mentioned may be changed or developed.

    在 vs code 中,调试 python 程序,发现如果用 start without debugging ( ctrl+f5 )进行调试,有时即使有 print 语句也不能打印。具体现象如下: 1、不添加断点,只 import 内置的库,可以正常打印 1 2、添加断点,只 import 内置的库,也可以正常打印 2 3、不添加断点,import 外部库(如 pymysql ),可以正常打印 3 4、添加断点,import 外部库(如 pymysql,其他外部库好像也有问题),无法正常打印?!!! 4 请问为什么会出现这个情况? vs code 版本情况为: 5

    1 replies    2019-05-14 15:48:16 +08:00
    OIseekU
        1
    OIseekU  
    OP
       May 14, 2019
    是别人也是这样的吗,还是我的配置不对
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1077 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:22 · PVG 02:22 · LAX 11:22 · JFK 14:22
    ♥ Do have faith in what you're doing.