D语言VisualD中在Release中如何使用符号文件

       我们在使用try{}catch(Throwtable e){}时,输出堆栈信息时有符号文件才能知道错误在哪里发生。

新建工程,添加测试代码

import std.stdio;
import std.string;

void test_error()
{
    throw new Exception("test");
}


int main(string[] argv)
{

    try
    {
        test_error();
    }
    catch(Exception e)
    {
        writeln(e);
    }
    readln();
    return 0;
}

image

         运行:

image

posted @ 2016-08-20 10:38  honan  阅读(213)  评论(0编辑  收藏  举报