连接调试器时程序不会崩溃 [英] program doesn't crash when the debugger is attached

查看:79
本文介绍了连接调试器时程序不会崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我遇到了无法调试的问题.我无法调试它,附加调试器后,b/c,问题神奇地消失了.

我正在用非常大的数据集对我的程序进行压力测试,发现我们存在某种错误当程序被推到最大功能时,它使程序崩溃.问题是,当我启动附带调试器的程序时,它不会崩溃.它成功完成了处理.另外,如果我在调试器崩溃后附加调试器,则我没有可用的调用堆栈(调用堆栈回退得还远远不够,无法了解真正的原因).这就是发布版本btw的全部内容.

那么我应该如何调试呢?调试器甚至如何防止我的程序崩溃?

So I've got this problem that I can't debug.  I can't debug it, b/c when the debugger is attached, the problem magically disappears.

I was stress testing my program with very large data sets and discovered that we have some sort of bug that's crashing our program when it's pushed to it's maximum capabilities.  The problem is that when I start the program with the debugger attached, it doesn't crash.  It completes processing successfully.  Also, if I attach the debugger after it's crashed, I don't have a usable call stack (the call stack doesn't go far enough back to see what the real cause was).  This is all with the release build btw.

So how am I supposed to debug this?  And how is it even possible for the debugger to prevent my program from crashing?

推荐答案

看看MVP Joe Newcomer的文章生存发行版": br/>
http://www.flounder.com/debug_release.htm
Take a look at MVP Joe Newcomer's article "Surviving the Release Version":

http://www.flounder.com/debug_release.htm


这篇关于连接调试器时程序不会崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆