当前位置没有可用的源代码.调试托管/本机c ++ Microsoft Visual Studio测试工具测试时出现错误消息 [英] There is no source code available for the current location. message when debugging a managed/native c++ Microsoft Visual Studio Test Tools test

查看:144
本文介绍了当前位置没有可用的源代码.调试托管/本机c ++ Microsoft Visual Studio测试工具测试时出现错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试Microsoft Visual Studio测试工具项目时遇到问题.

I have problem this debugging my Microsoft Visual Studio Test Tools project.

最初,我有要测试的本地c ++代码.

Originally i have native c++ code i want to test. 

我创建了Microsoft Visual Studio测试工具项目,该项目显然受到管理(具有公共语言运行时支持(/clr)").

I created Microsoft Visual Studio Test Tools project that obviously is managed(with Common Language Runtime Support (/clr)).

我可以运行测试,但是调试有问题.

I'm able to run the test but have problem with debugging.

我能够进入本机代码一次,经过cpp文件几步后,我收到一条消息当前位置没有可用的源代码".奇怪的是,之前和何时我都在同一个cpp文件中 一条消息

I was able to get into native code once and after i went for few steps through the a cpp file i got a message "There is no source code available for the current location". The strange thing is that I was in the same cpp file before and when I've got a message

我选中了 

  • 调试源文件选项
  • 要求源文件完全匹配选项
  • 调试器类型混合选项
  • Debug Source Files option
  • Require source files to exactly match option
  • Debugger Type Mixed option

推荐答案

  1. 工具 菜单,选择 选项 .
  2. 在选项"对话框中,打开 调试 节点,然后选择 常规 .
  3. 清除 启用仅我的代码" .
  1. On the Tools menu, choose Options.
  2. In the Options dialog box, open the Debugging node and then choose General.
  3. Clear Enable Just My Code.


这篇关于当前位置没有可用的源代码.调试托管/本机c ++ Microsoft Visual Studio测试工具测试时出现错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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