C # .NET VS2010 Limit points not working

When I go to debug the code, all my breakpoints are transparently filled (leaving only the outline), and a small triangle with an exclamation point in the middle is in the corner of the breakpoint.

An error occurred while hovering over a breakpoint: "At the moment, the breakpoint will not be deleted. The source code is different from the source. '

I did not try to debug my code in more than an hour, and during this time I added a new class with several streaming features.

The steps I took:

  • Clean and rebuild project
  • Set On if build or deployment errors occur: Do Not Run
  • Restore the project.
  • Disconnect the project folder from the flash drive and on HD
  • Close and reopen VS2010
+6
source share
4 answers

I understand that your class is complete, but the breakpoints are not affected, and when you create and run your solution, you will find the newly created assembly in your assembly.

To find out where VS is taking your assembly, you can first set a breakpoint in some class that you have not changed, so it will certainly be deleted (for example, at the end of your Main). When the breakpoint hits, find your assembly in AppDomain.CurrentDomain.GetAssemblies (), and here find the Location property, which should provide you with the path from which your assembly was loaded.

+4
source

I had the same problem, and precisely because VS2010 did not generate debug symbols. I inadvertently changed the whiel setting while trying to parse the dump file. I was able to fix this as follows:

  • From the Tools menu, select Options
  • In the Debug section, select the Symbols dialog.
  • At the bottom, under Automatically load characters for, select All modules if excluded
  • click the Specify excluded modules link and make sure the list is empty.
+4
source

Go to Tools ---> Options ---> Debugging ---> General ---> Uncheck "Require the source file to be exactly the same as the original version" ---> click ok, This works for VS 2010

0
source

Source: https://habr.com/ru/post/894786/


All Articles