Why can't I see print text when running a script in ArcMap, but can view it when run in the python window of ArcMap?
I have a number of scripts that have a print function but don't show when run from the Toolbox.
arcpy.AddMessage()
BTW, recommended practice is to use
arcpy.AddMessage()
rather than print, for portability between command line/batch files and ArcMap. But print is fine if you don't want your message to display inside ArcMap.
Getting print statements in Python script to print through a batch file
arcpy.AddMessage()
when I want to see a message in the geoprocessing progress dialog and/or in the JSON returned by geoprocessing services in response to REST API requests but print
everywhere else.