I was struggling to understand what values were being passed between steps when parsing complex strings until I found the Logger app which is MacOS and iOS and can easily log any step you want on either Mac , phone or iPad.
https://apps.apple.com/app/id1611554653
There are other options that are free, this has small cost but this was easy for me to use.