停止调试时堆栈是否会展开?

发布于 2024-09-01 06:58:16 字数 70 浏览 2 评论 0原文

只是好奇我的析构函数是否被调用。
(特别是对于 Visual Studio,当您点击红色停止按钮时)

Just curious if my destructors are being called.
(Specifically for Visual Studio, when you hit the red stop button)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

听闻余生 2024-09-08 06:58:16

在 VS2005、VS2008 和 VS2010 中,当您按停止调试时,进程不会终止。

您可以通过创建一个向文件写入内容(并刷新输出)的析构函数来轻松检查这一点。

我不确定你的意思是什么标准,但没有标准可以定义这种行为。

No the process is terminated in VS2005, VS2008 and VS2010 when you press stop debugging.

You can easily check this by making a destructor that writes something to a file (and flushes output).

I'm not sure what standard you mean, but there is no standard that would define this behavior.

埖埖迣鎅 2024-09-08 06:58:16

~~~~~~~~~~~~
不。
~~~~~~~~~~~~

~~~~~~~~~~~
Nope.
~~~~~~~~~~~

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文