Forum Discussion

gary's avatar
gary
New Contributor
15 years ago

Script-Result in Groovy ?????

Hello, does someone know what this message means?

Script-result: Foo@260c6f


I tried to run a Java code in the main method of a class called Foo. I called System.out.println in this script and I'd like to view the output if that's possible. Any help will be greatly appreciated.
  • Hi,

    The script is returning garbage value.
    For debugging, you can use the statement log.info <value>

    Let say, you are perfoming some arithmetic operation.
    def num = num *5
    log.info num

    It will print the value and will help in debugging