Resharper-unity: Can't inspect variables outside scope of the currently debugging class

Created on 2 Feb 2018  路  4Comments  路  Source: JetBrains/resharper-unity

Using Unity 5.6.3p3 with Rider 2017.3

capture

As the screenshot shows, any variable I try to inspect that is outside of the current class the debugger is suspended on just shows, {<namespace>}SomeOtherClass.VariableName. Clicking the + plus icon does not further evaluate the variable.

I've also attached the relevant lines from the DebuggerWorker log:

11:19:03.114 |T| DebuggerSession               | Evaluate of [SomeOtherClass.InspectBool] was called for frame [SourceLocation Method=Awake, Filename=C:\Users\Aaron Hoogstraten\Documents\repos\CharmKing\Assets\TestRiderUnity.cs, Line=7, Column=0] (id=10)
11:19:03.114 |V| DebuggerSession               | Resolving type SomeOtherClass at [SourceLocation Method=Awake, Filename=C:\Users\Aaron Hoogstraten\Documents\repos\CharmKing\Assets\TestRiderUnity.cs, Line=7, Column=0]
11:19:03.114 |T| SEND                          | call `DebuggerWorkerToHostModel.resolveType`::(StaticEntity/1002) send SYNC request 'DynamicServer/3' : ResolveTypeArg (
  identifier = "SomeOtherClass"
  filename = "C:\Users\Aaron Hoogstraten\Documents\repos\CharmKing\Assets\TestRiderUnity.cs"
  line = 6
  column = 0
)
11:19:03.118 |T| RECEIVED                      | call `DebuggerWorkerToHostModel.resolveType` (StaticEntity/1002) received response 'DynamicServer/3' : JetBrains.Platform.RdFramework.Tasks.RdTaskResult`1[System.String]
11:19:03.118 |V| DebuggerSession               | Type SomeOtherClass at [SourceLocation Method=Awake, Filename=C:\Users\Aaron Hoogstraten\Documents\repos\CharmKing\Assets\TestRiderUnity.cs, Line=7, Column=0] resolved to SomeOtherClass
11:19:03.120 |I| DebuggerWorker                | Unable to get type of SomeOtherClass, evaluation inside generic types and methods is not supported in old versions of Mono runtime
11:19:03.120 |I| DebuggerWorker                | Unable to get type of SomeOtherClass.InspectBool, evaluation inside generic types and methods is not supported in old versions of Mono runtime
11:19:03.120 |I| DebuggerWorker                | Expression not supported.
11:19:03.120 |T| SEND                          | endpoint `DebuggerWorkerModel.activeSession.$.executionContext.$.evaluateExpressions`::(DynamicServer/8), response = JetBrains.Platform.RdFramework.Tasks.RdTaskResult`1[JetBrains.Rider.Model.DebuggerWorker.EvaluateResult]
11:19:14.469 |T| RECEIVED                      | endpoint `DebuggerWorkerModel.activeSession.$.executionContext.$.evaluateExpressions`::(DynamicServer/8), request = EvaluateArg (
  frameId = 10
  expressions = [
    "SomeOtherClass.InspectBool"
  ]
  numberOfExpressionsBefore = 2
)

Searching for any reported related issues, I've only stumbled across the issue regarding debugging variables in coroutines, but this issue occurs in normal methods (as well as coroutines).

bug

All 4 comments

hi, any update here?

This issue is reproducible only in old Mono runtime. We are trying to fix it

Fixed as part of Rider 2018.2

Was this page helpful?
0 / 5 - 0 ratings