What does this error mean?!?!?
cc: @terrajobst
@noahfalk might be able help.
What were you doing that leads up to the error and where does the error appear?
The stack was in mscorlib if that helps?
Sorry I don't mean to be pedantic but the error string alone isn't unique enough for me to infer very much yet. You mentioned 'stack' and the error message has the word 'debuggee' in it so would I be safe to assume you were using a debugger? Was the debugger Visual Studio? Was the debuggee an application using .Net Core?
The error text looks like something that would probably be produced by Visual Studio debugger's expression evaluator. The expression evaluator gets invoked in response to many different situations so without knowing more of what you were doing at the time I'd only be able to give a vague description that some debugger action, either directly or indirectly, was trying to get information from an instance of a System.Type. Whatever that information was it wasn't available so the error was likely produced instead. I'm happy to try giving a more specific interpretation if I had more context and I can ask a Visual Studio debugger dev to come take a look at the thread if it is indeed Visual Studio that you are using?
Ah. Ok. Sorry, was late and i wasn't thinking.
I was debugging using VS2015 Update 2 on Win 8.1. The application was an x86 .NET Core, ASP.NET Core.
Anything else?
@gregg-miskelly works on VS debugger and might be able to provide a little more precision.
Where did the error string appear within the Visual Studio UI? Next to a particular expression in the locals window? In the immediate window? In a tooltip? Somewhere else? In order to determine why the debugger was trying to inspect a System.Type instance we'd need to understand what the debugger was trying to do for you.
In the local window
Were you inspecting a reflection object (ex:System.Type, TypeInfo, etc), or something else?
This means that -- you were stopped in a place where the debugger can not func-eval (force the target process to execute a function) so we had to interpret the code to try and evaluate properties and what the debugger was trying to do required inspecting a reflection type. But the CLR doesn't provide APIs to allow the debugger to understand what a System.Type instance represents. So the debugger fails with this error.
I was debugging TypeBuilder code so that sounds about right
If the error has been reasonably described are we good to close this issue?
I understand it. think a better error message should be given or even better not happen but that's a different issue
Same problem: I'm debugging in the .net source. I'm hovering over a predicate in System.Linq.Enumberable.Where
"Inspecting the state of an object in the debuggee of type System.Delegate is not supported in this context."


I received this error and the error message is understandable, but it seems like the debugger should have access to C# reflective types. I passed a System.Type parameter into a method, and wanted to use FullName to have a conditional breakpoint. I had to create a string variable for the purposes of debugging, and set its value to the property, and then create a conditional using the string variable.
I received this error and the error message is understandable, but it seems like the debugger should have access to C# reflective types. I passed a System.Type parameter into a method, and wanted to use FullName to have a conditional breakpoint. I had to create a string variable for the purposes of debugging, and set its value to the property, and then create a conditional using the string variable.
Just had to do the same. 🤦♂️
if (type.Name.Contains("MyTypeName"))
{
var sillyVarForBreakPoint = ""; // Breakpoint here.
}
Core seems to lose the ability which was present in Classic .NET Framework. Regression? I would say so.
Kind Regards.
Most helpful comment
Just had to do the same. 🤦♂️
Core seems to lose the ability which was present in Classic .NET Framework. Regression? I would say so.
Kind Regards.