[Note: There is enhanced version at [Go to Recent Failed Macro Action v2 [Macro:KM10]] that add additional error line, ability to open KM Log etc. I keep this original simplified version as it is.]
Remember those times where macro failed and aborted leaving you scratching your head of what went wrong ? So you open up the KM log file and check for the recent failed action. This manual checking is quite tedious especially if macro has many actions and you need to figure out which action is actually causing the error. So you probably end up calling logging, debugging or display action to trace the failed action.
But no more, KM10 has added this valuable feature "Select Last Aborted Action"
View -> Select Last Aborted Action
to immediately highlight the specific action in the macro that fails.
The following is the macro that upon trigger, open up the KM Editor and call "Select Last Aborted Action" to highlight the failed action while displaying the failed action description so to quickly pinpoint the source of error. （Note that this macro should be used immediately after the error occur because KM Log file and "Aborted Action" may have changed if the macro is used later. )