光标停留在错误的位置 [英] The cursor stand on an Incorrect location

查看:122
本文介绍了光标停留在错误的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vs.net 2003中,项目编译后,当我的代码中存在错误时,我双击任务列表"上的错误,IDE中的光标位于错误位置上方的几行.在调试的情况下存在此问题.例如,当我在一条线上放置一个断点时,光标会在断点位置上方站立一些线.为什么?我该如何解决?

In vs.net 2003, after the project compilation, when there is a bug in my code, I double click on error at "Task list", the cursor in IDE stands some lines above the error location. This problem exist in the case of debugging. For example when I put a break point on a line, the cursor stands some lines above the break point location. Why? How can I fix it?

推荐答案

您是否要调试发行版?当您这样做时,这种事情很常见.
Are you trying to debug a release build? That sort of thing is pretty common when you do.


感谢您的回复.不,我不在发布模式下运行我的DLL项目.我在调试模式下运行它.您有这个问题的主意吗?
Thanks for your reply. No, i don''t run my DLL project in release mode. I run it in DEBUG mode. Do you have any idea for this problem?


最可能的原因是您没有在运行一个包含saome源代码的构建. IDE试图找到正确的位置,但是不能,因为源代码本身是错误的.这可能意味着您的构建失败了,无论如何您正在运行ap.您说该应用程序是dll,因此调用该dll的exe可能正在加载旧版本.
The most likely reason is that you''re not running a build that has the saome source code as what you''re looking at. The IDE is trying to find the right location, but it can''t because the source code itself is wrong. This could mean that your build is failing, and you''re running the ap anyhow. You say the app is a dll, so, it''s possible that the exe that calls the dll is loading an old version.


这篇关于光标停留在错误的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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