自动断点是内部API,而不是我的代码 [英] Automatic Break Point is Inside API, Not my Code

查看:85
本文介绍了自动断点是内部API,而不是我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在论坛中搜索这个问题的答案,但遗憾的是我在Visual Studio中缺乏经验,我认为我甚至都不认为搜索了正确的术语以找到我的问题的答案。

I tried to search in the forum for an answer to this question, but I am unfortunately so inexperienced in Visual Studio that I don't think I even searched the correct terms to find the answer to my question.

我用c ++编程,而且当抛出异常时,Visual Studio直接转到与异常有关的API。据我所知,我没有得到任何关于我的代码中抛出异常的线索,除了可能是
的异常是基于与throw相关的代码。

I am programming in c++, and I when an Exception is thrown, Visual Studio goes directly to the API concerned with the exception. As far as I can tell, I am not being given any clues as to where in my code the exception is thrown, except perhaps what kind of exception it is based on the code associated with the throw.

当我使用eclipse或Netbeans在Java中编程时,程序会自动在我的代码中发生异常的位置设置一个断点,这样我就可以用try-catches实际调试和包围代码等等。如何设置Visual Studio
来执行相同的操作(对于c ++)?

When I program in Java using eclipse or Netbeans, the program automatically sets up a break point at the place IN MY CODE where the exception happened, so that I can actually debug and surround the code with try-catches and such. How do I set up Visual Studio to do the same (for c++)?

问候,

Isaac C Yates

Isaac C Yates

- 此外,我无法弄清楚如何在此社区中确认我的帐户,因此无法上传屏幕截图。我使用gmail创建了帐户,但没有收到任何确认电子邮件。

- Also, I can't figure out how to confirm my account in this community, so I couldn't upload screenshots. I made the account using gmail, but haven't received any confirmation emails.

推荐答案

嗨Isaac,

Hi Isaac,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

这可能与异常设置有关:

It's probably related to Exception Settings:

转到调试 - > Windows - >例外设置

然后你会看到C ++例外列表,你可以查看你想要的例外情况。

Then you'll see C++ exceptions list, you could check the exceptions you want.

更多信息 - >参考链接:

More information-> Reference link:

https:/ /msdn.microsoft.com/en-us/library/x85tt0dd.aspx?f=255&MSPPError=-2147217396

祝你好运,

Fletch


这篇关于自动断点是内部API,而不是我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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