ruby-on-railscoffeescriptjavascript-debuggerbyebug

similar to gem byebug for coffescript


Is there any similar tool to ruby gem byebug for coffescript?

I'd like to be able to stop the JS code and check variables' values/statuses (e.g. data, etc)


Solution

  • Use debugger as you would byebug and make sure you have the browser's developer console open. Execution will pause and you can step through the debugger and peek at the local scope.

    See the documentation on debugger for more