This debug command prints to the console heir history.
heir_history
Search Our Database of 304 EU4 Console Commands
This is the only way to use the heir_history console command. It will print heir history to the console.