[OT] Which IDE / Editor do you use?

Adam D. Ruppe destructionator at gmail.com
Sat Sep 14 10:38:10 PDT 2013


On Saturday, 14 September 2013 at 17:31:32 UTC, H. S. Teoh wrote:
> I'm pretty sure this is possible with a little effort.

beat you to it!
http://forum.dlang.org/thread/fxuwovrirseuatzeeprb@forum.dlang.org?page=17#post-jxqobgridgweioqclfqr:40forum.dlang.org

> One trick my coworkers like to use sometimes (with C/C++) is to 
> insert an infinite loop into the program at the suspected 
> problem spot, then at runtime when it reaches 99% CPU

In D, I like to just sprinkle assert(0)'s in places. It actually 
works pretty well - you can do a binary search of even a fairly 
large codebase in just a few iterations, then fix up the asserts 
to actually check what went wrong, and then keep them there later 
to form sanity checks or unit tests to catch regressions after 
the bug is fixed.

> OTOH, even displaying callstack may not help if your code is 
> heavy on callbacks (or in D, delegates) invoked from event 
> loops.

indeed.


More information about the Digitalmars-d mailing list