At the moment, the breakpoint will not be deleted. No characters were loaded for this document in Unity

I am trying to debug a coroutine in Unity using VS2017.

When I attach VS to Unity and set a breakpoint inside the IEnumerator method, I get the error: "The breakpoint will not be deleted"

enter image description here

Here is discussed in detail: How to fix the error? Currently, the breakpoint will not be deleted. No characters were loaded for this document. " a warning?

However, none of these answers worked for me.

Do you know how to set a breakpoint inside IEnumerator in VS2017?

+5
source share
2 answers

This is a known bug in Unity. Here's how to fix it:

1 .Go to File -> Build Settings ... then select your platform.

2 . Click on player settings → Other settings and change the API compatibility level to .NET 2.0.

If it is already installed in .NET 2.0, change it to a subset of .NET 2.0, and then back to .NET 2.0.

3 . Close and reopen Visual Studio. From Visual Studio, go to build -> Clean solution, then do Build -> Rebuild Solution.

Try debugging again and it should work.


If the steps above did not work, go to the Project Library folder and then share it. Restart Unity and Visual Studio.

+4
source

I had the same problem. The following steps have been resolved.

  • Go to build-> configuration manager .

  • check project configuration. If production is set , change this value to debug .

0
source

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


All Articles