zooo
V2EX  ›  问与答

求助 Python 程序, debug 时候在某个地方 print 了下,找不到位置了

  •  
  •   zooo · Nov 15, 2022 · 1493 views
    This topic created in 1292 days ago, the information mentioned may be changed or developed.

    现状:

    1. 已经修复好了,不用在 print 了
    2. 需要找到写 print 某个变量的地方
    3. 可能在源码里,也可能在某个依赖的包里。

    现在跑起来不断的 print ,很烦

    求救

    已经试过 grep -Ri "print" . 太多找不到

    已经解决,通过上面的命令,猜测到具体的源码目录进行搜索。

    1 replies    2022-11-15 17:24:43 +08:00
    CodeDrift
        1
    CodeDrift  
       Nov 15, 2022   ❤️ 1
    用 git 看 diff
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2748 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 09:50 · PVG 17:50 · LAX 02:50 · JFK 05:50
    ♥ Do have faith in what you're doing.