duckduckgo / p5-app-duckpan

DuckDuckHack OpenSource Development Application
http://metacpan.org/module/App::DuckPAN
Other
53 stars 47 forks source link

More/Better debug output (perhaps a --debug flag?) #222

Closed moollaza closed 8 years ago

moollaza commented 9 years ago

A new dev was trying to create a Spice IA that didn't need to return an answer to an API. He was unable to determine why his IA didn't appear in the output from duckpan query when he tested the triggers.

It turns out he had return; instead of return ""; which obviously meant his IA was bailing out, so nothing was returned to the console.

I was thinking we should be able to indicate whenever an IA truly triggers, i.e. the handle is executedbut returnsundef` (meaning it bailed out)

This output might get really noisy though, so perhaps a special --debug flag is necessary?

@jagtalon @killerfish @MrChrisW @mintsoft any thoughts?

MrChrisW commented 9 years ago

:+1: Yes please! I keep forgetting you can use DDG_BLOCK_TRACE=1 flag to get more information :laughing: . A debug argument would make life easier.

mintsoft commented 9 years ago

Absolutely; I always forget about DDG_BLOCK_TRACE; --verbose= or --debug is definitely more nix standard

killerfish commented 9 years ago

i think we already have a --verbose, just add this under that flag perhaps?