程序化断点提示

在内容脚本中添加调试器语句

var foo = 1;
debugger;

foo = 2;

在注入了内容脚本的网页上打开 Developer Tool,以查看这些行的代码执行暂停。