Search code examples
macosvisual-studiovisual-studio-debuggingvisual-studio-mac

visual studio mac, locals is empty when running code


I am using visual studio mac and am having trouble setting it up, I have opened the locals debugging pad but whenever I run my code the locals pad remains blank, I'm trying to view my lists and arrays. Does anyone know this is happening and what the solution is?


Solution

  • You need to be stepping through the debugger in order to see the variables in the local window per msdn:

    The Locals window displays variables that are defined in the local scope, which is generally the function or method that is currently being executed.

    Ref: https://msdn.microsoft.com/en-us/library/bhawk8xd.aspx