wilkerlucio Posted May 10, 2013 Share Posted May 10, 2013 Hi, I'm here just to share a simple tip that I realized in order to debug a development workflow. In my case here, I was hacking an workflow that I got, but for some reason it wasn't working, the command to run it (it is a script filter) was: php -f bookmarks.php -- "{query}" Well, I want have this output, but Alfred also needs it... So I found out that I can do this: php -f bookmarks.php -- "{query}" | tee -a debug_log This way, it will output to Alfred, but also will append the content to the debug log, and since it's appending, I'm able to: tail -f debug_log This way I can keep looking at the output while I test it. It's simple but I found very useful, hope it can help you too. Thanks Link to comment
jdfwarrior Posted May 11, 2013 Share Posted May 11, 2013 Hi, I'm here just to share a simple tip that I realized in order to debug a development workflow. In my case here, I was hacking an workflow that I got, but for some reason it wasn't working, the command to run it (it is a script filter) was: php -f bookmarks.php -- "{query}" Well, I want have this output, but Alfred also needs it... So I found out that I can do this: php -f bookmarks.php -- "{query}" | tee -a debug_log This way, it will output to Alfred, but also will append the content to the debug log, and since it's appending, I'm able to: tail -f debug_log This way I can keep looking at the output while I test it. It's simple but I found very useful, hope it can help you too. Thanks You could also just attach a Large Type output item to the back end of the workflow and see the output as well. That way you don't have to go to another file to see the generated output. Link to comment
wilkerlucio Posted May 12, 2013 Author Share Posted May 12, 2013 Can you detail it better, I tried that but don't got any output at all... I'm missing something? screenshot of the workflow: http://cl.ly/image/3s3T0e0K3o0E Link to comment
Tyler Eich Posted May 12, 2013 Share Posted May 12, 2013 Can you detail it better, I tried that but don't got any output at all... I'm missing something? screenshot of the workflow: http://cl.ly/image/3s3T0e0K3o0E I'm guessing here, but try attaching the 'Large Type' output to your 'Run Script' object Cheers Link to comment
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