V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
icoming
V2EX  ›  OpenAI

GPT 还是挺聪明的,网页消息的断点

  •  
  •   icoming · Dec 5, 2023 · 1026 views
    This topic created in 883 days ago, the information mentioned may be changed or developed.

    一个网页加载后会临时提示消息,2 秒后该消息 element 被删除

    问 GPT 怎么在删除前打断点,它说了在父元素监听什么的,我说不知道父元素,它就给了这个回答

    // 控制台执行
    setTimeout(() => {
      debugger; // 在此处设置断点
    }, 2000); // 两秒后触发断点
    
    mxT52CRuqR6o5
        1
    mxT52CRuqR6o5  
       Dec 5, 2023
    直接在控制台执行个 debugger 就行,或者在 sources 面板点暂停按钮
    icoming
        2
    icoming  
    OP
       Dec 5, 2023
    @mxT52CRuqR6o5 啊,这样更直接,哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1176 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 17:45 · PVG 01:45 · LAX 10:45 · JFK 13:45
    ♥ Do have faith in what you're doing.