Schrank, 23 days ago German You are used to #PHP and want to #debug in #ruby? Do this: puts object.inspect raise "Stop the program here" https://winkelwagen.de/2024/04/23/ruby-as-a-php-developer/
You are used to #PHP and want to #debug in #ruby? Do this:
puts object.inspect raise "Stop the program here"
https://winkelwagen.de/2024/04/23/ruby-as-a-php-developer/
ahx, 20 days ago German @Schrank I mostly use binding.irb to debug. You don’t even need pry for that these days.
@Schrank I mostly use binding.irb to debug. You don’t even need pry for that these days.
kleinmann, 23 days ago @Schrank You can also use https://github.com/pry/pry and start an interactive debugging/REPL session with binding.pry, if you prefer that 🙂
@Schrank You can also use https://github.com/pry/pry and start an interactive debugging/REPL session with binding.pry, if you prefer that 🙂
binding.pry
derickr, 23 days ago German @Schrank Does Ruby not have an actual step debugger like @Xdebug?
@Schrank Does Ruby not have an actual step debugger like @Xdebug?
Schrank, 23 days ago German @derickr @Xdebug 😂😂I have no clue 🤷 I coded literally 2h 😂😂 But @kleinmann wrote about pyc(?)
@derickr @Xdebug 😂😂I have no clue 🤷 I coded literally 2h 😂😂 But @kleinmann wrote about pyc(?)
Schrank, 23 days ago German @derickr @Xdebug https://mastodon.social/@kleinmann/112319490619536203 @kleinmann Sounds like it?
@derickr @Xdebug https://mastodon.social/@kleinmann/112319490619536203 @kleinmann
Sounds like it?
SenseException, 23 days ago German @Schrank I remember writing a "var-dump" in Ruby for the RPG Maker XP. This was close to 20 years ago.
@Schrank I remember writing a "var-dump" in Ruby for the RPG Maker XP. This was close to 20 years ago.
Schrank, 23 days ago German @SenseException puts .inspect seems to do that, but I have no clue about Ruby 🙈 was enough to fix a bug and PR it though 🥰😍
@SenseException puts .inspect seems to do that, but I have no clue about Ruby 🙈 was enough to fix a bug and PR it though 🥰😍
SenseException, 20 days ago German @Schrank If I remember correctly I used in a loop. 🤔 One of my last encounter with Ruby was around 2013, 2014. I also did some XML stuff one or two years ago after that, creating translation files.
@Schrank If I remember correctly I used in a loop. 🤔 One of my last encounter with Ruby was around 2013, 2014. I also did some XML stuff one or two years ago after that, creating translation files.
Add comment