0
Under review

Clicking (?) on LINQ expression says "DebuggerShared could not be found in the global namespace"

Jouni Heikniemi 1 year ago • updated by Omer Raviv (CTO) 4 months ago 6

I have a .NET Core 1.1 Project. When I try to debug LINQ expressions and hit the ( ? ) bubble after the expression, I get a popup that says "Data value result is: 'rror CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?)".

-1
Under review

Hi Jouni,


We're sorry for the delay.


OzCode LINQ debugging does not yet support .NET Code but we intend to add support for it after .NET Core 2.0 is official release.

I get the same error and I don't use .NET Core.

Me too. I'm using .NET webforms and get the same error message as above.


Together with the class {DevExpress.Web.PhysicalFileSystemProvider.<GetFiles>d__8} i get this error above



Thanks for the comment, Hbx! Can you please send us your latest log files from %TEMP%\OzCode\Logs to support@oz-code.com?

You can get it here:

The last entry connected to this issue:


2018-01-05 22:20:40,954 [1] WARN  BugAidLogger - Evaluation failed - error flags were: _propertyInfo.dwAttrib: DBG_ATTRIB_VALUE_READONLY, DBG_ATTRIB_VALUE_ERROR, _propertyInfo.dwFields: DEBUGPROP110_INFO_NAME, DEBUGPROP110_INFO_VALUE, DEBUGPROP110_INFO_ATTRIB, DEBUGPROP110_INFO_PROP Value: error CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?)-+-+-
2018-01-05 22:20:40,954 [1] INFO  BugAidLogger - Spent 00:00:00.00 doing Evaluating new global::System.Func<global::System.Collections.Generic.IEnumerable<global::DevExpress.Web.FileManagerFile>, global::CustomPhysicalFileSystemProvider, global::DebuggerShared.Visualizer.FluentAnalysis.FlowGraph>((global::System.Collections.Generic.IEnumerable<global::DevExpress.Web.FileManagerFile> filesListUnFiltered_OzCode, global::CustomPhysicalFileSystemProvider this_OzCode) =>  {return P_F_A.EnumerableWrapperExtensions.BuildGraph(() => P_F_A.EnumerableWrapperExtensions.WrapToList(P_F_A.EnumerableWrapperExtensions.WrapWhere(P_F_A.EnumerableWrapperExtensions.WrapSource(filesListUnFiltered_OzCode, new P_F_A.OperatorLambdaMetaData(0, "Source")), file => this_OzCode.FilesToShow.Contains(file.RelativeName.Replace("*", "")), new P_F_A.OperatorLambdaMetaData(1, "Where")), new P_F_A.OperatorLambdaMetaData(2, "ToList")));})-+-+-
2018-01-05 22:20:40,954 [1] ERROR BugAidLogger - Exception occurred: DebuggerShared.Helpers.Exceptions.OzCodeException: Call to LINQ evaluation method failed with: error CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?) ---> DebuggerShared.Hud.Implementation.FluentAnalysis.FluentInjectionException: Failed to evaluate: "P_F_A.EnumerableWrapperExtensions.BuildGraph(() => P_F_A.EnumerableWrapperExtensions.WrapToList(P_F_A.EnumerableWrapperExtensions.WrapWhere(P_F_A.EnumerableWrapperExtensions.WrapSource(filesListUnFiltered_OzCode, new P_F_A.OperatorLambdaMetaData(0, "Source")), file => this_OzCode.FilesToShow.Contains(file.RelativeName.Replace("*", "")), new P_F_A.OperatorLambdaMetaData(1, "Where")), new P_F_A.OperatorLambdaMetaData(2, "ToList")))" 
 Data Value result is: "error CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?)"
   --- End of inner exception stack trace ---
   at DebuggerShared.Services.ErrorNotification.ErrorNotificationLogger.LogErrorWithoutShowingErrorNotificationUI(String errorMessage, Exception exception)
-+-+-
DebuggerShared.Helpers.Exceptions.OzCodeException: Call to LINQ evaluation method failed with: error CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?) ---> DebuggerShared.Hud.Implementation.FluentAnalysis.FluentInjectionException: Failed to evaluate: "P_F_A.EnumerableWrapperExtensions.BuildGraph(() => P_F_A.EnumerableWrapperExtensions.WrapToList(P_F_A.EnumerableWrapperExtensions.WrapWhere(P_F_A.EnumerableWrapperExtensions.WrapSource(filesListUnFiltered_OzCode, new P_F_A.OperatorLambdaMetaData(0, "Source")), file => this_OzCode.FilesToShow.Contains(file.RelativeName.Replace("*", "")), new P_F_A.OperatorLambdaMetaData(1, "Where")), new P_F_A.OperatorLambdaMetaData(2, "ToList")))" 
 Data Value result is: "error CS0400: The type or namespace name 'DebuggerShared' could not be found in the global namespace (are you missing an assembly reference?)"
   --- End of inner exception stack trace ---
   at DebuggerShared.Services.ErrorNotification.ErrorNotificationLogger.LogErrorWithoutShowingErrorNotificationUI(String errorMessage, Exception exception)

2018-01-05 22:20:40,955 [1] ERROR BugAidLogger - Exception occurred: DebuggerShared.Helpers.Exceptions.OzCodeException: Command.Execute failed ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at DebuggerShared.Hud.Implementation.FluentAnalysis.FluentExpressionOrchestrator.SetDifferentNotNullPart(FluentPart newPart)
   at DebuggerShared.Hud.Implementation.FluentAnalysis.FluentExpressionOrchestrator.UpdateSelectedPart(FluentPart partToSelect)
   at DebuggerShared.Commands.FluentAnalysis.SelectPartCommand.ExecuteImpl(OpenFluentFlowPartContextData partContext)
   at DebuggerShared.Commands.OzCommand`1.Execute(Object parameter)
   --- End of inner exception stack trace ---
   at DebuggerShared.Services.ErrorNotification.ErrorNotificationLogger.LogErrorWithoutShowingErrorNotificationUI(String errorMessage, Exception exception)
-+-+-
DebuggerShared.Helpers.Exceptions.OzCodeException: Command.Execute failed ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at DebuggerShared.Hud.Implementation.FluentAnalysis.FluentExpressionOrchestrator.SetDifferentNotNullPart(FluentPart newPart)
   at DebuggerShared.Hud.Implementation.FluentAnalysis.FluentExpressionOrchestrator.UpdateSelectedPart(FluentPart partToSelect)
   at DebuggerShared.Commands.FluentAnalysis.SelectPartCommand.ExecuteImpl(OpenFluentFlowPartContextData partContext)
   at DebuggerShared.Commands.OzCommand`1.Execute(Object parameter)
   --- End of inner exception stack trace ---
   at DebuggerShared.Services.ErrorNotification.ErrorNotificationLogger.LogErrorWithoutShowingErrorNotificationUI(String errorMessage, Exception exception)



Thanks! This error seems to suggest that earlier on, OzCode failed to load its Probe assembly into the debuggee. That might appear earlier in your log file?