ruby visual debuggers/ide's for Linux

230 views
Skip to first unread message

Stuart Cracraft

unread,
Dec 24, 2013, 11:21:48 PM12/24/13
to puppet...@googlegroups.com
Hi,

Is there a plain-text visual debugger ide for Linux for Ruby anyone can mention?

Stuart

Jason Antman

unread,
Dec 25, 2013, 4:41:42 PM12/25/13
to puppet...@googlegroups.com
Since you're asking about a Ruby IDE, not a Puppet IDE, perhaps this
question would be better asked of a Ruby list, or even better, a search
engine...
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b15a63ee-164e-4bb6-bbe4-829c67a91655%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Stuart Cracraft

unread,
Dec 26, 2013, 12:10:20 AM12/26/13
to ja...@jasonantman.com, puppet...@googlegroups.com

Jason:

Google shows ruby-debug, inf-ruby emacs lisp packages
and separately rdebug and irb but nothing really substantive
for a non-GUI IDE which includes code in its running form
usefully.

Python and Perl have no such obvious limitations but perhaps
it is just because I don't know yet...

For Puppet itself there is of course:

http://puppetlabs.com/blog/geppetto-a-puppet-ide

I'd expect with the number of Ruby coders in Puppet Land (perhaps they are
all over on puppet-developers...) someone would one-off that question
pretty quick with the best practice...

I had hoped this would have worked:

http://www.emacswiki.org/emacs/ruby-debug

like the perldb and pdb debuggers in Emacs work (wonderfully I might add),
but alas ruby-debug didn't though I need to play around with it more.

Stuart
> You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/wwxeRu-cG_o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52BB0AC6.2010802%40jasonantman.com.

Johan De Wit

unread,
Dec 26, 2013, 9:59:14 AM12/26/13
to puppet...@googlegroups.com, Stuart Cracraft
Hi Stuart,

Someone on the dev irc mentioned pry -> http://pryrepl.org/

I learned already a lot trying to write my first custom type and provider

Grts

Johan
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/b15a63ee-164e-4bb6-bbe4-829c67a91655%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________

Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________


Next Events:
Puppet Advanced Training | http://www.open-future.be/puppet-advanced-training-7-till-9th-january
Puppet Fundamentals Training | http://www.open-future.be/puppet-fundamentals-training-4-till-6th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

JuanBrein

unread,
Dec 26, 2013, 11:35:23 AM12/26/13
to puppet...@googlegroups.com
I would highly suggest you to use VIM+plugins

Powerful as any other graphical IDE plus you can run it in any console plus run on any OS plus free :-)

Stuart Cracraft

unread,
Dec 26, 2013, 5:35:05 PM12/26/13
to puppet...@googlegroups.com, Stuart Cracraft
Bizarre.

I downloaded pry-0.9.12.4.gem from rubygems.org and then:

  gem install pry

It gave:

ERROR: While executing gem ... (RangeError)
   integer 7516195309

Google has been unhelpful in ascertaining the path forward from the above error for the pry ide tryout....

If you are aware of the above, let loose in response.

--Stuart

Stuart Cracraft

unread,
Dec 26, 2013, 5:35:28 PM12/26/13
to puppet...@googlegroups.com
Juan,

Where is this documented?

Stuart

Stuart Cracraft

unread,
Dec 26, 2013, 9:41:48 PM12/26/13
to puppet...@googlegroups.com

Hi everybody.

My quest for a Ruby debugger is over.

This does it:


The result is a 6-window split in emacs.

One is interactive to rdb.

One is the code with the program counter (i.e. the "arrow")

One is for variables.

One is for output.

One is for breakpoints.

And so forth.

My ~/.emacs looks like:

(add-to-list 'load-path "/export/home/scracraft/Lisp/")

(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/")

(add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode))

(autoload 'ruby-mode "ruby-mode" "Major mode for editing Ruby code" t)

(add-hook 'ruby-mode-hook (lambda () (local-set-key "\r" 'newline-and-indent)))

(require 'inf-ruby)

(require 'rdebug)


Operation consists of:


open emacs

visit the .rb source file

do meta-x (i.e. escape-key) and then rdebug


window splits.

type help.


Commands include step, next, print, break, etc.


Stuart


P.S. I prefer Emacs to GUI editors other than Xcode.

Johan De Wit

unread,
Dec 27, 2013, 6:24:32 AM12/27/13
to puppet...@googlegroups.com, Stuart Cracraft
Stuart,

I'm on fedora, and installed it from the rubygem-pry.noarch.rpm

I try to avoid gem and alike, cause more problems with versions and so on --- mostly because i think i do not now exactly what I'm doing with gem/bundle and simular things.

Grts

johan

For more options, visit https://groups.google.com/groups/opt_out.

Johan De Wit

unread,
Dec 27, 2013, 6:30:32 AM12/27/13
to puppet...@googlegroups.com, Stuart Cracraft
I use vim-puppet-lint and syntastic, they are in the

https://github.com/scrooloose/syntastic
http://puppet-lint.com/

As an example, here is my .vimrc file
" http://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
execute pathogen#infect()
set fo=tcq
set nocompatible
set modeline

syntax on

" Puppet-lint parameters
let g:syntastic_puppet_lint_arguments='--no-hard_tabs-check --no-2sp_soft_tabs-check --no-80chars-check'
" set default comment color to cyan instead of darkblue
" which is not very legible on a black background
highlight comment ctermfg=cyan

set tabstop=2
set expandtab
set softtabstop=2
set shiftwidth=2

set pastetoggle=<F2>

highlight LiteralTabs ctermbg=darkgreen guibg=darkgreen
match LiteralTabs /\s\  /
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
match ExtraWhitespace /\s\+$/

" Show me a ruler
set ruler

" Set up puppet manifest and spec options
au BufRead,BufNewFile *.pp
  \ set filetype=puppet
au BufRead,BufNewFile *_spec.rb
  \ nmap <F8> :!rspec --color %<CR>

" Enable indentation matching for =>'s
filetype plugin indent on





On 12/26/2013 06:35 PM, Stuart Cracraft wrote:
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


-- 
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer         (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
 
Open-Future                 Phone     +32 (0)2/255 70 70
Zavelstraat 72              Fax       +32 (0)2/255 70 71
3071 KORTENBERG             Mobile    +32 (0)474/42 40 73
BELGIUM                     http://www.open-future.be
_________________________________________________________
 

Upcoming Events:

Reply all
Reply to author
Forward
0 new messages