Stack traces: Difference between revisions

→‎{{header|D}}: keep the app running
(D entry: reordered functions, improved text and tags.)
(→‎{{header|D}}: keep the app running)
Line 522:
=={{header|D}}==
Compiled with the dmd compiler using the -g switch.
<lang d>voidimport inner() {std.stdio;
 
throw new Exception(null);
void inner() {
try
throw new Exception(null);
catch (Exception e)
writeln(e);
 
writeln("running");
}
 
Line 538 ⟶ 545:
}</lang>
{{out}}
<pre>object.Exception@test.d(65)
----------------
0x0040BD280x004158EC in char[][] core.sys.windows.stacktrace.StackTrace.trace()
0x0040BBB30x00415777 in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor()
0x004020500x00402069 in void test.inner() at C:\test.d(75)
0x0040205C0x004020B0 in void test.middle() at C:\test.d(1114)
0x004020680x004020BC in void test.outer() at C:\test.d(1518)
0x004020180x004020C8 in _Dmain at C:\test.d(221)
0x004026C40x0040BE40 in extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain()
0x004026FA0x0040BE76 in extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll()
0x004022FD0x0040BA79 in _d_run_main
0x004020800x00407FA0 in main
0x763933AA0x753133AA in BaseThreadInitThunk
0x77C59EF20x775C9EF2 in RtlInitializeExceptionChain
0x77C59EC50x775C9EC5 in RtlInitializeExceptionChain</pre>
running</pre>
 
=={{header|DWScript}}==
Anonymous user