Debugging CTFE

Max Samukha samukha at
Tue Jun 17 10:38:44 PDT 2008

On Tue, 17 Jun 2008 20:45:48 +0400, "Koroskin Denis"
<2korden at> wrote:

>On Tue, 17 Jun 2008 20:04:25 +0400, Matthias Walter  
><Matthias.Walter at> wrote:
>> Hello,
>> I have written some compile time executable functions with D 1.0 which  
>> work in runtime but hang (and allocate memory without end) at  
>> compile-time. Is there a way to debug this further? Can one print stuff  
>> out? (Don't know if writefln works at compile-time, as I'm using Tango)  
>> Can I somehow get a stack trace of the functions called?
>> best regards
>> Matthias Walter
>You can use pragma(msg, "hello there!") to output some text at compile  

The only way to print a debugging message from the inside of
compile-time function is to use assert(false, "hallo"); but it breaks

More information about the Digitalmars-d-learn mailing list