deanishe Posted June 10, 2017 Share Posted June 10, 2017 Alfred v3.4 [843] Selecting "All information" in the debugger doesn't show the input passed to Script Filters. Link to comment Share on other sites More sharing options...
Andrew Posted June 10, 2017 Share Posted June 10, 2017 @deanishe The debugger "All Information" currently shows what's being passed out of objects, so when I connect a keyword to a script filter, I see the output from the keyword being passed to the connected script filter. Where are you not seeing logging? I'm happy to take a fresh look at the debugger and add more info where useful Link to comment Share on other sites More sharing options...
deanishe Posted June 10, 2017 Author Share Posted June 10, 2017 (edited) I was trying to figure out where the trailing whitespace in my Script Filter query was being stripped (Alfred, my library, the CLI-argument-handling library). I hadn't realised that Alfred only logs output (seeing as Script Filters are about the only element that don't necessarily accept the output of another element). It would be helpful if Alfred also logged the input to elements that aren't consuming the output of other elements, especially now Alfred has different modes for handling whitespace in input. Not that it's a particular chore to add echo "query='$1'" >&2 manually. (In this case, I'd failed to fully recompile the program after removing my own trim command.) Edited June 10, 2017 by deanishe Link to comment Share on other sites More sharing options...
Andrew Posted June 12, 2017 Share Posted June 12, 2017 @deanishe I've added in a few extra bits of debugger output to the script filter for the next release, so now you see the argument being queued (which can stack up depending on the selected queue mode), and the argument used with relation to the script output (the actual argument used when running the script). I've also added a ticket to look at improving the debugger generally, increased info etc. Cheers, Andrew Link to comment Share on other sites More sharing options...
deanishe Posted June 12, 2017 Author Share Posted June 12, 2017 Awesome! If I had one wish for the debugger, it would be a "show everything but the JSON" option. It's important to be able to see the JSON when you need to, but if that's not what you're interested in, the sheer volume of output from some Script Filters overwhelms the rest. Link to comment Share on other sites More sharing options...
Andrew Posted June 12, 2017 Share Posted June 12, 2017 @deanishe one of my notes in the ticket is for more granular logging levels. I specifically wrote to make the Script Filter JSON/XML output as finest (i.e. least important), as while messing about with the screenshot above, I ended up making the output empty so I could actually see if things were going on Link to comment Share on other sites More sharing options...
deanishe Posted June 12, 2017 Author Share Posted June 12, 2017 So that's Alfred removing the Script Filter output? I did wonder how you were getting an arg out of a Script Filter with no items… Link to comment Share on other sites More sharing options...
Andrew Posted June 12, 2017 Share Posted June 12, 2017 @deanishe My script filter was just hard code returning {"items": []} Link to comment Share on other sites More sharing options...
deanishe Posted June 12, 2017 Author Share Posted June 12, 2017 Ah right. I misread the log. I thought "Script response with argument …" meant "script responded with argument …" Link to comment Share on other sites More sharing options...
Andrew Posted June 12, 2017 Share Posted June 12, 2017 I'll tweak that a little for clarity before release Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now