LoginSignup
5
4

More than 5 years have passed since last update.

onclick時にステップ実行するためのメモ

Posted at

Railsのjquery-ujsに絡んだ挙動をデバッグしていて、data-methodつきのaタグをクリックしたあとでステップ実行したいんだけど、どこに処理が行くのか追いづらかったとき用

window.startDebug = function() {
  debugger
};
= link_to "Foo", "/foo", method: :post, "onclick": "window.startDebug()"
5
4
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
5
4