简体   繁体   English

断点无法命中

[英]Breakpoint cannot be hit

I'm trying to debug my code in Visual Studio but my Breakpoint is not hit no matter what I add or where I add it.我正在尝试在 Visual Studio 中调试我的代码,但无论我添加什么或添加它的位置,我的断点都不会被命中。 It's giving me this message它给了我这个信息

在此处输入图像描述

How do I go back to debug mode?我如何 go 回到调试模式? It seems like it's loading a release version.它似乎正在加载发布版本。 But I don't know where to find this is visual studio但我不知道在哪里可以找到这是视觉工作室

If you want to use the debug build, run the application as debug build.如果要使用调试版本,请将应用程序作为调试版本运行。 You can easily choose the release / debug version in the top bar besides the "Start" button in the dropdown menu.除了下拉菜单中的“开始”按钮之外,您还可以在顶部栏中轻松选择发布/调试版本。 它位于菜单栏的正下方。

  1. right click on your project and click 'Properties'右键单击您的项目,然后单击“属性”
  2. from the left opening and click 'Build'从左侧开口,然后单击“构建”
  3. and 'configuration' select Debug和“配置”select 调试

Fixed!固定的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM