Please add line numbers to the Arcade Expression builder within ArcGIS Pro. Currently there are no line numbers, so to debug you need to either manually count rows or copy and paste your expression into another program (I have used Notepad++ to work around this deficiency). Having row numbers will greatly improve the troubleshooting of Arcade Expressions within AGP.