Login  Register

Debug option ...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Debug option ...

ch007m
145 posts
I don't see a debug option in the asciidoctor documentation even if the asciidoctor code contains a debug.rb class. So my question is perhaps stupid/idiot but how can we debug asciidoctor (IDEA, ...) when launched from a terminal ?
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Debug option ...

mojavelinux
Administrator
2681 posts

The debug in Asciidoctor is currently extremely low level and intended primarily for someone hacking on the core code. At the moment there isn't a way I've documented to debug the code. You can use a debug tool [1], print statements or tests.

-Dan

[1] http://pryrepl.org (Ruby)
https://github.com/jruby/jruby/wiki/UsingTheJRubyDebugger (JRuby)

On Nov 26, 2013 6:45 AM, "ch007m [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
I don't see a debug option in the asciidoctor documentation even if the asciidoctor code contains a debug.rb class. So my question is perhaps stupid/idiot but how can we debug asciidoctor (IDEA, ...) when launched from a terminal ?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Debug-option-tp1101.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Debug option ...

abstractj
1 post
Good morning my friend, better late than never. I faced the same issue right now on AeroGear.

The solution was:

for i in `ls **/*.asciidoc`;do asciidoc $i | grep -i warning; done

I hope it helps others.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Debug option ...

mojavelinux
Administrator
2681 posts

On Thu, Feb 26, 2015 at 12:23 PM, abstractj [via Asciidoctor :: Discussion] <[hidden email]> wrote:
for i in `ls **/*.asciidoc`;do asciidoc $i | grep -i warning; done

You mean "asciidoctor" instead of "asciidoc", right?