ada87
V2EX  ›  问与答

请问前端如何消除 Debuger?

  •  
  •   ada87 · Dec 27, 2021 · 2250 views
    This topic created in 1610 days ago, the information mentioned may be changed or developed.

    有些网站用匿名函数 DEBUGER,无限循环,不让看,有没什么办法停掉?

    https://test222-1256358009.cos.ap-guangzhou.myqcloud.com/a2.png

    6 replies    2021-12-28 01:49:29 +08:00
    phony2r
        1
    phony2r  
       Dec 27, 2021
    不打开 devtools 的情况下 debugger 语句是不生效的, 站长这样做就是为了防止你 debug 这个网站.
    ada87
        3
    ada87  
    OP
       Dec 27, 2021
    @phony2r 非常感谢
    des
        4
    des  
       Dec 27, 2021
    F12 然后 command + F8 关闭调试断点
    ada87
        5
    ada87  
    OP
       Dec 27, 2021
    在 devtools / Debug / JavaScript 叉掉就行了
    learningman
        6
    learningman  
       Dec 28, 2021 via Android
    关掉断点的话全都没办法用了,你可以在那一行算加个条件为 false 的条件断点,这样其他地方下断点还可以正常跑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1129 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 18:06 · PVG 02:06 · LAX 11:06 · JFK 14:06
    ♥ Do have faith in what you're doing.