Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
100行のコードがあり、すべての行にブレークポイントが必要な場合、最初の行をクリックして100行目までスクロールし、シフトクリックまたはコントロールクリックを使用してその間のすべての行を選択し、ブレークポイントを適用するようなものがありますか? ?
debugクロムでは、キーワードを使用してみることができます。
debug
function debug(fn) { [Command Line API] }
たとえば、次のコードを Chrome 開発者コンソールに貼り付けます。
function hw() { alert('hello world'); } debug (hw); hw();
仮想ファイルを作成し、関数のブレークポイントから開始します。