You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the process of debugging, when I want to check under which context I currently am, I usually write something like self in byebug.
It is fine in most cases, but for cells, this command (which I believe calls the inspect method), by default prints every instance variable, and in the case of a cell this is just disastrous (also printing parent_controller variables, etc.)
We're talking about a HUUUGE string here, printed by mistake in the shell. ie,
I would love to have something more useful, but even just writing something like
#<EmployeeCell:0x0000001786a120>
Would actually spare me the "WTF" when writing self while debugging a cell context.
I don't know what kind of information we'd want from that inspect, but showing the cell class, the model's inspect, and the @options would make sense ?
The text was updated successfully, but these errors were encountered:
During the process of debugging, when I want to check under which context I currently am, I usually write something like
self
in byebug.It is fine in most cases, but for cells, this command (which I believe calls the inspect method), by default prints every instance variable, and in the case of a cell this is just disastrous (also printing parent_controller variables, etc.)
We're talking about a HUUUGE string here, printed by mistake in the shell. ie,
I would love to have something more useful, but even just writing something like
Would actually spare me the "WTF" when writing
self
while debugging a cell context.I don't know what kind of information we'd want from that inspect, but showing the cell class, the model's inspect, and the
@options
would make sense ?The text was updated successfully, but these errors were encountered: