Advice on debugging possible exception or crash

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Jul 6 07:09:11 UTC 2023


On 06/07/2023 7:07 PM, Cecil Ward wrote:
> On Thursday, 6 July 2023 at 06:17:34 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> 2 Recommendations:
>>
>> 1. Attach a debugger
>> 2. Make sure to flush stdout whenever you write
> 
> I assumed that buffering was to blame. How do I flush stdout?

stdout.flush;

https://dlang.org/phobos/std_stdio.html#.stdout



More information about the Digitalmars-d-learn mailing list