VS在Release模式下,难道还可以Debug?

就是这段代码:

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    cxcxsdee w;
    w.show();

    QStringList list;
    for (int i=0; i<5000000; i++)  {
        list << QString::number(i);
    }
    QTime tm;
    tm.start();
    list.clear();
    qDebug() << tm.elapsed();

    return a.exec();
}

在VS2010 Release下,按F5运行需要几万毫秒,但是按Ctrl F5却只需要几百毫秒。难道Release模式还可以调试?搞不懂,留个爪,以后再研究~

posted @ 2015-08-24 20:09  findumars  Views(379)  Comments(0)    收藏  举报