[OT] Which IDE / Editor do you use?
Paulo Pinto
pjmlp at progtools.org
Sat Sep 14 13:34:28 PDT 2013
Am 14.09.2013 21:52, schrieb Artur Skawina:
> On 09/14/13 21:15, Paulo Pinto wrote:
>> So much work when one could just call the debugger from running code,
>>
>> http://msdn.microsoft.com/en-us/library/f408b4et.aspx
>>
>> at least on Windows. :)
>
> // version (x86|x86_64)
> enum __debugbreak = q{asm { "int $3"; }};
>
> void main() {
> import std.stdio;
> auto a = 42;
> writeln(a);
> mixin (__debugbreak);
> writeln(a);
> }
>
Ah, should have tested on Linux before posting. I was under the
impression you could not do an "int 3" from user space.
> ...
>
> DMD might support inline asm too, with a different syntax; never used it.
>
It does, Walter is very keen on it and contrary to C and C++, it is
really part of the language's specification.
--
Paulo
More information about the Digitalmars-d
mailing list