断点问题 [英] breakpoint issues

查看:84
本文介绍了断点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前我已经解决了这个问题,但似乎无法解决这个问题。

I had this before and resolved it but cannot seem to resolve this one.

我将.NET CF 1.0项目升级到.NET CF 2.0(C#)和所有好吧。问题是,每当我在代码的任何部分放置一个调试断点时,它就永远不会被击中而我得到的"断点当前不会被击中"。等等......

I upgraded a .NET CF 1.0 project to .NET CF 2.0 (C#) and all seems ok. The thing is, everytime I place a debug breakpoint on any part of the code, it never gets hit and I Get the "the breakpoint will currently not be hit" etc.....

任何想法?我知道之前有过这里的帖子,但是我几乎尝试了大部分内容并且似乎不幸地帮助了我。想知道我是否应该开始一个新项目(大项目)?我也创建了一个新的空白项目并重新添加了所有文件,但遗憾的是它似乎没有任何帮助

Any ideas? I know there have been posts here before but I pretty much tried most of them and didn't seem to help me unfortunately. Wondering if I should start a new project (big project)? I also did create a new blank project and re-added all the files but that didn't seem to help at all unfortunately

推荐答案

项目是在发布或调试模式下编译的吗?如果它是前者,这将解释为什么你的断点没有被击中。调试器需要调试符号(存储在projectName.pdb中),以便您逐步执行代码。

Is the project compiled in release or debug mode? If its the former, that would explain why your breakpoints are not getting hit.  The debugger needs the debugging symbols (stored in projectName.pdb) in order to let you step through the code. 

有时,vis studio顶部绿色箭头旁边显示的模式与配置管理器中设置的模式不匹配。要确保两者都设置为调试,请转到:Build / ConfigurationManager打开配置管理器。确保同时使用"Active Solution Configuration"和"Active Solution Configuration"。并且项目的配置设置为"调试"。 - 列在标有"项目上下文"的框中

Sometimes the mode that displays adjacent to the green arrow at the top of vis studio does not match what's set in the configuration manager. To make sure both are set to debug open the configuration manager by going to: Build/ConfigurationManager. Make sure that both the "Active Solution Configuration" and the Project's configuration are set to "Debug" -- listed in the box labeled "Project Contexts"


这篇关于断点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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