-
Notifications
You must be signed in to change notification settings - Fork 2
Testing and debugging
mtwebit edited this page Jul 6, 2018
·
6 revisions
Always develop and test your code independently from Tasker until it is ready to be taskified.
Tasker should save every notices, errors etc. into $task->log_messages.
It even has an independent "debug" setting that controls this logging.
When you execute tasks using TaskerAdmin its Javascript frontend communicates with its REST API using JSON objects.
If you see "Parse errors" on this interface it means that the JSON object is not well formed.
In this case you check the raw results from the API. Just add "api/" to the end of the TaskerAdmin URL (before the id and cmd arguments), and see what it produces.
Example:
https://example.org/processwire/page/tasks/api?id=60343&cmd=exec
Returns "PHP: Warning ...."