You can pipe WLOG_LEVEL=DEBUG xfreerdp <args> through the script and it will try to parse and dump smartcard commands and results. The script has a basic support for PIV and GIDS applications. The script can also operate on a saved log file