D For A Web Developer

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 30 07:25:05 PDT 2014


On Wednesday, 30 April 2014 at 14:18:37 UTC, Ary Borenszweig 
wrote:
> When I have a bug in my code I usually add a test for it so it 
> never happens again.
>
> Because it's a bug, I might need to debug it. So I add a couple 
> of "writefln" instead of using a debugger (it's faster and I 
> get formatted results easier).
>
> Now, if I run all tests I will get output from all the tests, 
> not the one I'm trying to debug. That's really annoying.

Output from the failing test will always be the last one in 
console. Pipe to tail -> profit. This sounds as pure aesthetics 
issue.


More information about the Digitalmars-d mailing list