Schrank, German
@Schrank@phpc.social avatar

You are used to and want to in ?
Do this:

puts object.inspect
raise "Stop the program here"

https://winkelwagen.de/2024/04/23/ruby-as-a-php-developer/

ahx,
@ahx@ruby.social avatar

@Schrank I mostly use binding.irb to debug. You don’t even need pry for that these days.

kleinmann,
@kleinmann@mastodon.social avatar

@Schrank You can also use https://github.com/pry/pry and start an interactive debugging/REPL session with binding.pry, if you prefer that 🙂

derickr,
@derickr@phpc.social avatar

@Schrank Does Ruby not have an actual step debugger like @Xdebug?

Schrank,
@Schrank@phpc.social avatar

@derickr @Xdebug 😂😂I have no clue 🤷 I coded literally 2h 😂😂
But @kleinmann wrote about pyc(?)

Schrank,
@Schrank@phpc.social avatar
SenseException,
@SenseException@phpc.social avatar

@Schrank I remember writing a "var-dump" in Ruby for the RPG Maker XP. This was close to 20 years ago.

Schrank,
@Schrank@phpc.social avatar

@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,
@SenseException@phpc.social avatar

@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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • Durango
  • ngwrru68w68
  • PowerRangers
  • kavyap
  • osvaldo12
  • tsrsr
  • mdbf
  • GTA5RPClips
  • normalnudes
  • tester
  • khanakhh
  • tacticalgear
  • vwfavf
  • InstantRegret
  • ethstaker
  • everett
  • Leos
  • cisconetworking
  • modclub
  • cubers
  • anitta
  • provamag3
  • All magazines