|  | 
 
 发表于 2025-7-17 14:48:57
|
显示全部楼层 
| 我用下面最简单的html调试,安全模式下也能进入debugger,但是通过webpack编译的vue项目,进入不了断点
  
 
 
 复制代码<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <button id="btn">点击</button>
  <script>
    const btn = document.getElementById('btn')
    btn.addEventListener('click', () => {
      debugger
      console.log('点击')
    })
  </script>
</body>
</html>
 
 | 
 |