puppet-debugger
puppet-debugger copied to clipboard
A interactive live debugger and REPL for the puppet language
I want to "inspect" facts and functions in order to determine where they originate from in code. Sometimes there can be facts that are no longer needed and can't remember...
The debugger cannot seem to parse heredoc strings.
Pry has a ? command that shows a help message when issued. Add this to the debugger.
`Puppet::Module.find('stdlib', Puppet[:environment].to_s).version`
Now that `ls` will show the resource parameters we can add the ability to "walk" the tree of containers and give the ability to show all of the parameters inside...
``` 23:>> File { 24:>> owner => 'cosman' 25:>> } => #[# ], :file=>"/var/folders/v0/nzsrqr_n40d4v396b2bqjvdw0000gp/T/puppet_debugger_input20170523-47244-y9813e.pp", :line=>[1, 1], :source=>#, :scope=>Scope()}, @query=#, @type="File"> ```
https://github.com/jberkel/interactive_editor
It would be really nice to have the ability to install puppet modules during a debugger session. ie. ``` install puppetlabs/puppetserver_gem install puppetlabs/pe_puppetserver_gem ```