LoginSignup
11
11

More than 5 years have passed since last update.

debuggerステートメント

Posted at

知らなかったのでメモ✍

実行を中断するステートメント

ブレークポイントをコード中に定義できる。


for(var i=1; i<5; i++) {
   console.log(i);
   debugger
}

これでうっかり無限ループや再起でブラウザを固めてしまうことが無くなりそうだ。

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11