-
Notifications
You must be signed in to change notification settings - Fork 12
Rails Debugging Print
Alistair McKinnell edited this page Jul 30, 2015
·
6 revisions
Rationale
When debugging a Rails application one of the best techniques is to insert print statements into the server log. To make the debugging print statement stand out in the log it's useful to display a prompt prior to the debugging output. We can make this common operation easier by adding a live template just for this purpose.
Mechanism
Navigate to: RubyMine > Preferences > Editor > Live Templates


Click "Edit variables"

Now, when you are debugging and want to print the value of some variable:
- copy the variable name
- put the cursor on the line where you want to know the value of that variable
- type
ppand press Enter (or your expand live template key)
