断点目前不会被击中。文件行无效:nnnn [英] break-point will not currently be hit. Invalid file line : nnnn

查看:70
本文介绍了断点目前不会被击中。文件行无效:nnnn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2005并且我无法在我添加了一些新代码的区域设置断点。当我将鼠标悬停在断点上时,我得到:



断点当前不会被击中。文件行无效:nnnn



如果我将断点向下移动到正文或旧代码中。我已经移动了功能的主体并没有区别。所有其他功能设置断点都没有问题。

有没有人看过这个并且有修复?



谢谢,

Vaibhav Jaiswal

I''m using VS2005 and am unable to set a break-point those areas where I have added some new code. When I hover over the break-point I get:

"The break-point will not currently be hit. Invalid file line : nnnn"

If I move the break-point down in the body or in olde code it sets. I''ve moved the body of the function around and no difference. All other functions have no problem setting breakpoints.
Has anyone seen this and is there a fix?

Thanks,
Vaibhav Jaiswal

推荐答案

每当你在调试的现有代码中添加一段新代码时,首先应该再次构建解决方案并继续调试。



如果您正在调试从与项目文件夹不同的位置运行的exe,



例如:C:\program files \ test\test.exe是你从项目中调试的那个,你应该用已经输出的exe替换test.exe新建项目。现在,您可以将过程附加到VSDebugger并继续
Whenever you have a new piece of code added to the existing code that you are debugging, First thing is you should build the Solution once again and continue to debug.

In case if you are debugging a exe that is running from a different location than that of your Project Folder,

For exampe: C:\program files\test\test.exe is the one you are debugging from your project, You should replace the test.exe with the exe that is got out of the newly build project. Now you can attach the process to the VSDebugger and proceed


这篇关于断点目前不会被击中。文件行无效:nnnn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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