<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>UnderSourceCode</author_name>
  <author_url>https://blog.hatena.ne.jp/UnderSourceCode/</author_url>
  <blog_title>ソースコードから理解する技術－ＵｎｄｅｒＳｏｕｒｃｅＣｏｄｅ</blog_title>
  <blog_url>https://undersourcecode.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>ちょっとしたスクリプトをRubyで書くときに、.rbファイルに保存することが あるかと思います。今回は、.rbファイルとして保存したスクリプトを、pryでデバッグする手順です。 pryがインストール済みであることを前提条件とします。1.ブレークポイントの設定 Ruby on Railsで行うのと同様、スクリプト内のデバッグ時に止めたい箇所に、以下を記述します。binding.pry 2.スクリプトの実行 以下のコマンドをコンソールに記述し、Rubyのスクリプトをpryでデバッグ実行します。$ ruby -r pry 対象のスクリプト名.rb 3.ショートカットキーの設定 上の手順だけでデバッグ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fundersourcecode.hatenablog.com%2Fentry%2F20130429%2F1367241365&quot; title=&quot;pryを使ってRubyのスクリプトをデバッグする - ソースコードから理解する技術－ＵｎｄｅｒＳｏｕｒｃｅＣｏｄｅ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-29 22:16:05</published>
  <title>pryを使ってRubyのスクリプトをデバッグする</title>
  <type>rich</type>
  <url>https://undersourcecode.hatenablog.com/entry/20130429/1367241365</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
