When I create new variables and go into break mode I can't see the value of the variables by hovering over them or through the watch window. In this I can read the error that " The name does not exist in the current context ". This happens to me in all the Web Forms of the project. However, in other types of projects the operation is correct. For example with Xamarin Android it works perfectly.
This has happened to me after a few weeks working with a Xamarin Android project. When I reopen the ASP.NET (.NET Framework) project with the C# language I see that I cannot see the values of the variables. It compiles correctly and all code written above works correctly. I can't debug anything new because this behavior doesn't allow me to inspect the values of the variables.
In break mode, if I hover over the red dot indicator I get the following message:
I notice that the PDB file of the project does not exist. I think the problem may be because this file does not exist. But I compile again and it is not generated.
Cheers
Stopping to read this, I wanted to ask you something: Are you sure that when you stop the execution with the breakpoint, the variable you want to see has a value (even if it is null)? I say this because it seems that when you sense that 'it doesn't work' it is because perhaps the execution has not reached that point, and therefore, the variable is not initialized and, let's say, does not exist at that moment of execution.
In a way, it's like asking for the result of an operation that hasn't been done yet, so there isn't a result yet?
Cheers!
I already found the solution to the problem. The cause is the update to VS Professional 2019, v. 16.11.11. Pages did not support new code. Creating a new project and new pages the behavior is normal in terms of all possibilities of code inspection in break mode. The problem has been the work it has given me to create all the forms and paste the code in the .CS and .ASPX files. I don't know if there would be another less cumbersome solution, but this one has worked and is what matters most to me right now.
Cheers