? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

NabBlog

I hate everything and everyone.
Fuck the world, the people.
Fuck the children, women, men.
Fuck politics, war, peace, money.
Fuck bullshit and startups.
Fuck stupids.

Fuck you.

Follow in NewsfeedFollowing

Latest comments:

Add new post

Title

21 hours ago · 2 min read 0
Body
Read more

[Ruby] Debug with Pry

on Mar 05, 2016

There is a necessary tool to debug your Ruby code: it's named pry. Install it :

gem install pry

Then you can use it in your code:

require 'pry'

def foo
# stuff
binding.pry
# more stuff
end

foo() # When you call foo, it will execute stuff
# then give you back the control. use "exit" or "Ctrl+D" to go to the next line.

0 Comments:

user_name1 day ago
Reply
Body
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More