The recommended way for troubleshooting Active Choice scripts is from the Jenkins Groovy console. Write your script and variables as they will be used in the job and test the script until it works correctly and returns the required data structure for the Active Choice type you are using.
In the context of a freestyle job Active Choice parameters are reported to the Chrome javascript console and that is also helpful for troubleshooting. Hope this helps