Comments on: Debugging your Ruby Programs http://www.blackbytes.info/2015/07/ruby-debugging/ Ruby Programming Tutorials Mon, 19 Sep 2016 13:26:21 +0000 hourly 1 http://wordpress.org/?v=4.3.6 By: Peter Schröder (@phoet) http://www.blackbytes.info/2015/07/ruby-debugging/#comment-392 Mon, 20 Jul 2015 18:52:06 +0000 http://www.blackbytes.info/?p=2018#comment-392 thanks for the article, for those that want to read more on the topic i’d like to link to one of my articles about debugging rails applications in development: http://nofail.de/2013/10/debugging-rails-applications-in-development/

]]>
By: John Denisov http://www.blackbytes.info/2015/07/ruby-debugging/#comment-390 Sat, 18 Jul 2015 07:23:15 +0000 http://www.blackbytes.info/?p=2018#comment-390 Knowing about curl is good thing. But using it for everyday debugging is cumbersome. There are plenty of great tools like postman(https://www.getpostman.com/features) for debugging http requests/responses. Although browser-based solutions can’t modify headers blocked by browser like Origin

]]>
By: dariodaic http://www.blackbytes.info/2015/07/ruby-debugging/#comment-389 Sat, 18 Jul 2015 03:26:05 +0000 http://www.blackbytes.info/?p=2018#comment-389 Using p(obj) instead of puts(obj.inspect) is not preferable just because of brevity. If need be, #inspect can be overridden. The idea is to dump the object itself, e.g. String#inspect wraps an object in quotes (like so – “self”). It can be very useful on instances of your own classes if you get stuck.

Excellent choice of the subject! Loved the tip for “require pry” snippet.

]]>
By: admin http://www.blackbytes.info/2015/07/ruby-debugging/#comment-388 Wed, 15 Jul 2015 01:15:16 +0000 http://www.blackbytes.info/?p=2018#comment-388 Thanks for your comment! I agree, pry-byebug is great :)

]]>
By: abargnesi (@abargnesi) http://www.blackbytes.info/2015/07/ruby-debugging/#comment-387 Wed, 15 Jul 2015 00:59:24 +0000 http://www.blackbytes.info/?p=2018#comment-387 Good post, thanks for introducing me to sysdig.

One note on byebug:

You can use David Rodríguez’s pry-byebug gem (https://github.com/deivid-rodriguez/pry-byebug) to use the byebug commands within the pry repl. Now you will have syntax highlighting + byebug’s powerful debugging capabilities.

]]>