Lazarus 2.2.6, Windows 11.
If I uncheck 'Win32 gui application (-WG)' option and check 'Use Heaptrc unit (check for mem-leaks) (-gh)' option, then, after application ends, result of heaptrc is not shown in window, but is printed in console window.
Problem is that this console window closes immediately after application ends and I don't have time to inspect heaptrc results.
Is there an option to keep console window open after application ends?