Login  Register

Re: Interactively debugging a template with a REPL

Posted by obilodeau on Mar 13, 2016; 7:49pm
URL: https://discuss.asciidoctor.org/Interactively-debugging-a-template-with-a-REPL-tp4498p4500.html

Awesome! I'll try and report back here.

On Sun, Mar 13, 2016 at 3:58 PM mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The debugger you're looking for is PRY. It's pretty amazing, though I have to admit I don't have much experience using it. I'd be thrilled to learn from your experience.


On Sun, Mar 13, 2016 at 1:26 PM, obilodeau [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I would like to be able to interactively debug a template modification I am trying to make instead of putting puts statements all over the place and trying to reach the proper object.

Using the slim template engine.

In python this would look like this:

- import ipdb; ipdb.set_trace()

Then running the program from a shell I would get an interactive debugger in the context of where the line executed.

Ideally the debugger/REPL would have tab completion to make object hierarchy discovery faster.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Interactively-debugging-a-template-with-a-REPL-tp4498.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Interactively-debugging-a-template-with-a-REPL-tp4498p4499.html
To unsubscribe from Interactively debugging a template with a REPL, click here.
NAML