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.
我想知道如果我打印出过滤参数的值会发生什么byebug。会是[FILTER]orthe actual value还是empty string.
byebug
[FILTER]
the actual value
empty string
例如密码和信用卡字段
我得到空字符串,所以我不确定该值是否存在。
在控制台中:
Parameters: {"utf8"=>"✓", "email"=>"test@ff.ff", "password"=>"[FILTERED]", "commit"=>"Sing in"}
使用byebug:
(byebug) params {"utf8"=>"✓", "email"=>"test@ff.ff", "password"=>"11111111", "commit"=>"Sing in", "action"=>"create", "controller"=>"sessions"}