<?xml version="1.0" encoding="UTF-8"?>
<article>
  <body>&#27604;&#22025;&#12373;&#12435;&#12363;&#12425;cite&#12373;&#12428;&#12383;&#12415;&#12383;&#12356;&#12394;&#12398;&#12391;&#12289;&#21462;&#12426;&#24613;&#12366;&#26032;&#12375;&#12356;&#24773;&#22577;&#12434;&#21520;&#12365;&#20986;&#12375;&#12390;&#12362;&#12371;&#12358;&#12392;&#24605;&#12356;&#12414;&#12377;&#12290;

[**&#12381;&#12429;&#12429;&#12429;Rails&#12395;&#12388;&#12356;&#12390;&#26412;&#38899;&#12434;&#26360;&#12356;&#12390;&#12415;&#12427;&#12363;**](http://d.hatena.ne.jp/higayasuo/20080111)

&gt;&#24460;&#12289;&#12487;&#12496;&#12483;&#12464;&#12398;&#29872;&#22659;&#12399;&#12289;Java&#12395;&#27604;&#12409;&#12390;&#36007;&#24369;&#12384;&#12392;&#24605;&#12358;&#12290;Rails&#12391;&#12487;&#12496;&#12483;&#12464;&#12434;&#12377;&#12427;&#65303;&#12388;&#12398;&#26041;&#27861;&#12434;&#35211;&#12390;&#12411;&#12375;&#12356;&#12290;IDE&#12391;&#12477;&#12540;&#12473;&#12395;&#12502;&#12524;&#12540;&#12463;&#12509;&#12452;&#12531;&#12488;&#12434;&#35373;&#23450;(&#12477;&#12540;&#12473;&#12467;&#12540;&#12489;&#12434;&#26360;&#12365;&#25563;&#12360;&#12427;&#12398;&#12391;&#12399;&#12394;&#12367;)&#12375;&#12390;&#12289;&#12473;&#12486;&#12483;&#12503;&#12452;&#12531;&#12289;&#12473;&#12486;&#12483;&#12503;&#12458;&#12540;&#12496;&#12540;&#12289;&#12513;&#12514;&#12522;&#12398;&#29366;&#24907;&#12434;&#35211;&#12383;&#12426;&#12394;&#12435;&#12390;&#12398;&#12395;&#24931;&#12428;&#12390;&#12356;&#12427;Java&#12363;&#12425;&#27604;&#12409;&#12427;&#12392;&#12289;&#12377;&#12387;&#12372;&#12367;&#22823;&#22793;&#12395;&#35211;&#12360;&#12427;&#12290;

&#21916;&#12400;&#12375;&#12356;&#12371;&#12392;&#12395;&#12289;Rails 2.0&#12391;&#12399;ruby-debug&#12434;&#20351;&#12387;&#12383;debugger&#12364;&#27491;&#24335;&#12395;&#25505;&#29992;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;
&#12371;&#12428;&#12398;&#20351;&#12356;&#26041;&#12399;&#38750;&#24120;&#12395;&#31777;&#21336;&#12391;&#12377;&#12290;

&#12414;&#12378;&#12399;&#12289;&#20197;&#19979;&#12398;&#12424;&#12358;&#12395;&#12502;&#12524;&#12540;&#12463;&#12509;&#12452;&#12531;&#12488;&#12434;&#12467;&#12540;&#12489;&#20013;&#12395;&#26360;&#12365;&#36796;&#12415;&#12414;&#12377;&#12290;

rails&gt;&gt;
def some_method
  debugger # breakpoint
end
&lt;&lt;--

&#32154;&#12356;&#12390;&#12289;Web&#12469;&#12540;&#12496;&#12434;&#12487;&#12496;&#12483;&#12464;&#12514;&#12540;&#12489;&#12391;&#23455;&#34892;&#12375;&#12414;&#12377;&#12290;

shell&gt;&gt;
% ./script/server -u
&lt;&lt;--

&#12371;&#12428;&#12384;&#12369;&#12391;&#12377;&#12290;&#12354;&#12392;&#12399;&#12289;&#23455;&#38555;&#12395;&#12502;&#12524;&#12540;&#12463;&#12509;&#12452;&#12531;&#12488;&#12434;&#20181;&#25499;&#12369;&#12383;
&#22580;&#25152;&#12364;&#23455;&#34892;&#12373;&#12428;&#12427;&#12424;&#12358;&#12395;&#12377;&#12428;&#12400;&#12289;gdb&#12521;&#12452;&#12463;&#12394;ruby-debug&#12398;
&#12475;&#12483;&#12471;&#12519;&#12531;&#12364;&#38283;&#22987;&#12373;&#12428;&#12414;&#12377;&#12290;
ruby-debug&#12399;&#12289;gdb&#12392;&#21516;&#12376;&#12424;&#12358;&#12395;&#12289;&#12473;&#12486;&#12483;&#12503;&#23455;&#34892;&#12289;&#12473;&#12486;&#12483;&#12503;&#12458;&#12540;&#12496;&#12540;&#31561;&#12398;&#36880;&#27425;&#23455;&#34892;&#12434;&#34892;&#12358;&#12452;&#12531;&#12479;&#12540;&#12501;&#12455;&#12452;&#12473;&#12364;&#12354;&#12427;&#12398;&#12391;&#12289;
&#12467;&#12540;&#12489;&#12398;&#21205;&#20316;&#12434;&#30906;&#35469;&#12375;&#12394;&#12364;&#12425;&#12487;&#12496;&#12483;&#12464;&#12434;&#34892;&#12358;&#12371;&#12392;&#12364;&#12391;&#12365;&#12414;&#12377;&#12290;

gdb&#12395;&#12394;&#12428;&#12390;&#12356;&#12394;&#12356;&#20154;&#12395;&#12399;&#12289;`irb`&#12467;&#12510;&#12531;&#12489;&#12434;&#23455;&#34892;&#12377;&#12427;&#12371;&#12392;&#12391;&#12289;
&#12381;&#12398;&#22580;&#12391;irb&#12434;&#31435;&#12385;&#19978;&#12370;&#12427;&#12371;&#12392;&#12364;&#12391;&#12365;&#12414;&#12377;&#12290;&#12371;&#12428;&#12399;&#38750;&#24120;&#12395;&#20415;&#21033;&#12391;&#12377;&#12397;&#12290;

&#21442;&#32771;&#12414;&#12391;&#12395;&#12289;debugger&#12363;&#12425;&#23455;&#34892;&#12391;&#12365;&#12427;&#12467;&#12510;&#12531;&#12489;&#12398;&#12522;&#12473;&#12488;&#12434;
&#36617;&#12379;&#12390;&#12362;&#12365;&#12414;&#12377;&#12290;

pre&gt;&gt;
backtrace break catch cont delete display down eval exit finish frame help irb list method next p pp quit reload restart save script set step thread trace undisplay up var where
&lt;&lt;--

Have a good debugging life!

**See Also**

 * [MOONGIFT: ? Rails&#12398;&#12487;&#12496;&#12483;&#12464;&#12398;&#12362;&#20379;&#12395;&#12300;ruby-debug&#12301;:&#12458;&#12540;&#12503;&#12531;&#12477;&#12540;&#12473;&#12434;&#27598;&#26085;&#32057;&#20171;](http://www.moongift.jp/2008/01/ruby-debug/)

**&#26356;&#26032;&#23653;&#27508;**

 * 2008/01/21 See Also&#12395;1&#28857;&#36861;&#21152;</body>
  <cached-tag-list>rails debug 20 redux</cached-tag-list>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime">2008-01-11T22:21:06+00:00</created-at>
  <daily-archive-id type="integer">336</daily-archive-id>
  <filter-type>blue_stole</filter-type>
  <id type="integer">304</id>
  <monthly-archive-id type="integer">34</monthly-archive-id>
  <pdf-digest nil="true"></pdf-digest>
  <permalink nil="true"></permalink>
  <published-at type="datetime">2008-01-11T22:08:00+00:00</published-at>
  <secret>a63256f6-5938-4349-b050-a31763edac3b</secret>
  <title>Rails 2.0&#12391;&#12487;&#12496;&#12483;&#12464;&#12434;&#12377;&#12427;&#26032;&#12375;&#12356;&#12420;&#12426;&#26041;</title>
  <updated-at type="datetime">2008-10-22T20:08:59+00:00</updated-at>
  <user-id type="integer">1</user-id>
</article>
