Here is another way to debug maps in GIS/SI. You can use the “cerror” function and it’s more easier than using of the messagebox function – you don’t need to check the error messages in the GIS/SI logs.
From the help file:
The cerror function raises a compliance error. You typically specify this function as an action to be performed if a condition is false. This function is valid on the input side of a map only. There is also an optional third parameter you can supply-a string which is written to the translator report as part of the entry for the compliance error you are raising.
But you also can use this function to send messages from code to the map execution report (MapTestTxReport.xml). Example: