ããã¯Rubyã¢ããã³ãã«ã¬ã³ãã¼2022ã®22æ¥ç®ã®è¨äºã§ãã binding.irb ã®ããã 8å¹´åã« ä»æ´èããªãpryã®ä½¿ãæ¹ã¨ä¾¿å©ãã©ã°ã¤ã³é ã¨ããè¨äºãæ¸ããããããé·ãé binding.pry ãæç¨ãã¦ãããbinding.irb ã binding.pry ã使ã£ããã¨ããªãããã¨ãã人ã¯ãä¸èªããå§ããããã å½æPryã«ãã£ãIRBã«å¯¾ããåªä½æ§ã®ãã¡ãæéãçµã£ã¦ã常ã«ä½¿ãç¶ããæ©è½ã¨ããã° binding.pryã®åå¨ã$ (show-source)ã@ (whereami)ãls ã¨ãã® -G (grep) ãªãã·ã§ã³ããããã°æ©è½ (è¦pry-byebugãã©ã°ã¤ã³) ã¨ããæãã§ãä»ã¯ã¾ããã¾ã«ä½¿ãããããããã®æãã«ãªã£ãã®ã ãããªãã¨ãããã¯Ruby 3.2ã§ã¯IRBã§å ¨ã¦ä½¿ããããã«ãªã£ãããã®ä¸ãGemfileã«ä½ãæ¸ããªãã¦ãããã©ã«ãã§ä½¿ã
{{#tags}}- {{label}}
{{/tags}}