Hi, I''m using TextMate for rails development on OSX, but have reached a point where I need to run in a debugger and be able to step through the code as it executes. I have previously used the Eclipse Ruby plug in and another IDE for ruby development on windows, but never figured out how to run a Rails app in the debugger. How are other textmate users debugging and what else is there on the Mac? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/0ba8ec46/attachment.html
Have you tried this? http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint On 4/1/06, Larry White <ljw1001@gmail.com> wrote:> Hi, > > I''m using TextMate for rails development on OSX, but have reached a point > where I need to run in a debugger and be able to step through the code as it > executes. I have previously used the Eclipse Ruby plug in and another IDE > for ruby development on windows, but never figured out how to run a Rails > app in the debugger. > > How are other textmate users debugging and what else is there on the Mac? > > thanks. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
well, I''ve tried it now but I can''t get it to work. I''m getting this. No connection to breakpoint service at druby://localhost:42531 (DRb::DRbConnError) Tries to connect will be made every 2 seconds... I tried the supposed OSX work around of sudo ip6 -d lo0 followed by: ./script/breakpointer --client-uri=druby://localhost:12345 but with the same result. Any suggestions? On 4/1/06, GravyFace <gravyface@gmail.com> wrote:> > Have you tried this? > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint > > On 4/1/06, Larry White <ljw1001@gmail.com> wrote: > > Hi, > > > > I''m using TextMate for rails development on OSX, but have reached a > point > > where I need to run in a debugger and be able to step through the code > as it > > executes. I have previously used the Eclipse Ruby plug in and another > IDE > > for ruby development on windows, but never figured out how to run a > Rails > > app in the debugger. > > > > How are other textmate users debugging and what else is there on the > Mac? > > > > thanks. > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/e603d884/attachment.html
Sorry, I have not used it myself (just noticed it in my travels) but try running netstat -an while its running and see if anything is listening on that port. On 4/1/06, Larry White <ljw1001@gmail.com> wrote:> well, I''ve tried it now but I can''t get it to work. I''m getting this. > > No connection to breakpoint service at druby://localhost:42531 > (DRb::DRbConnError) > Tries to connect will be made every 2 seconds... > > I tried the supposed OSX work around of > sudo ip6 -d lo0 > followed by: > ./script/breakpointer --client-uri=druby://localhost:12345 > but with the same result. Any suggestions? > > > > > > On 4/1/06, GravyFace <gravyface@gmail.com> wrote: > > Have you tried this? > > > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint > > > > On 4/1/06, Larry White < ljw1001@gmail.com> wrote: > > > Hi, > > > > > > I''m using TextMate for rails development on OSX, but have reached a > point > > > where I need to run in a debugger and be able to step through the code > as it > > > executes. I have previously used the Eclipse Ruby plug in and another > IDE > > > for ruby development on windows, but never figured out how to run a > Rails > > > app in the debugger. > > > > > > How are other textmate users debugging and what else is there on the > Mac? > > > > > > thanks. > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Larry White wrote:> well, I''ve tried it now but I can''t get it to work. I''m getting this. > > No connection to breakpoint service at druby://localhost:42531 > (DRb::DRbConnError) > Tries to connect will be made every 2 seconds... > > I tried the supposed OSX work around of > > sudo ip6 -d lo0 > > followed by: > > ./script/breakpointer --client-uri=druby://localhost:12345 > > but with the same result. Any suggestions?This is actually how it is *supposed* to work. It only comes to life when a breakpoint is encountered in your code. So, let''s say you insert a breakpoint somewhere in your code, then with a browser hit your application in a way that the breakpoint is encountered. Then the terminal that breakpointer is running in will become an irb session with all the variables up to that point in the code available. -- Posted via http://www.ruby-forum.com/.
On 4/1/06, Brad Daily <brad@bradleyboy.com> wrote:> > Larry White wrote: > > well, I''ve tried it now but I can''t get it to work. I''m getting this. > > > > No connection to breakpoint service at druby://localhost:42531 > > (DRb::DRbConnError) > > Tries to connect will be made every 2 seconds... > > > > I tried the supposed OSX work around of > > > > sudo ip6 -d lo0 > > > > followed by: > > > > ./script/breakpointer --client-uri=druby://localhost:12345 > > > > but with the same result. Any suggestions? > > This is actually how it is *supposed* to work. It only comes to life > when a breakpoint is encountered in your code. So, let''s say you insert > a breakpoint somewhere in your code, then with a browser hit your > application in a way that the breakpoint is encountered. Then the > terminal that breakpointer is running in will become an irb session with > all the variables up to that point in the code available.You''re right. It is working. The documentation at the link above seems to suggest that this is an error condition, but it''s working fine. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060401/b1090259/attachment.html