Open msgHelloWorld.groovy and set a breakpoint on line 27 (left click on the line number).
Hello World with active Breakpoint
Open Test_HelloWorld.groovy, click on the green arrows beside line no 16 and Debug 'Test_HelloWorld'.
Run Test
The script compiles, runs and stops at the Breakpoint, with an open Debugger Windows (Threads & Variables).
Debugger Window: Code execution stopped at breakpoint
Find out, how to "Setop Over" line-by-line and halt after the addition. Check the Variables.
IntelliJ on halt - breakpoint hit
💡TIP!
In the IDE watch the yellow and red markers in the editor to the right. Also the yellow warning exclamations on the top. Click on ti the open the Problems window.
Find the Database window.
Use ctrl + shift / or ctrl + / for comments.
Script functionality
Have a look at the Map Script itself that simply adds two values:
See the test has passed and check the output (log messages):