NullReference clicking on classname in debugger


(JohnMoshakis) #1

Hi,
With the attached app

ListAsyncConsoleApplication.zip (134.7 KB)

This is the main

class method Main(args: array of String): Int32;
begin
  var obj := new SomeClass;
  var res := obj.DoIt.Result;
end;

If I set a breakpoint on var obj := new SomeClass, when the breakpoint is hit if I click on SomeClass with the mouse.

I get this

Process ListAsyncConsoleApplication started
~> Trying to debug PID 24957
~> Debugger action ‘evaluate’ failed with an error: System.Exception: System.NullReferenceException: Object reference not set to an instance of an object
~> at RemObjects.Oxygene.CoreDebugEngine.Evaluator.ValueToString (RemObjects.Oxygene.CoreDebugEngine.StackFrameInfo aContext, System.Int32 aRadix, RemObjects.Oxygene.CoreDebugEngine.EvaluatorValue aValue) [0x00015] in <8203318e38704ac9b0155e36eed79315>:0
~> at DebugHost.Program.CreateVarObjectValue (RemObjects.Oxygene.MI.MIObject lRes, RemObjects.Oxygene.CoreDebugEngine.EvaluatorValue ev, System.Boolean aElements) [0x0019c] in <3e3c7e2f6d99429f9decb4995913bfdb>:0
~> at DebugHost.Program.CreateVarObject (RemObjects.Oxygene.CoreDebugEngine.EvaluatorValue aVal, System.Boolean aElements) [0x000b3] in <3e3c7e2f6d99429f9decb4995913bfdb>:0
~> at DebugHost.Program.Main (System.String[] args) [0x01160] in <3e3c7e2f6d99429f9decb4995913bfdb>:0
~> at RemObjects.Oxygene.MI.DebugEngine.ExecuteCommand (System.String s) [0x000ff] in <0c1df5808a6740cdbdd82c96cefba78b>:0
~> at RemObjects.Oxygene.MI.DebugEngine.CreateVarObject (RemObjects.Oxygene.MI.DebugThreadInfo aThread, RemObjects.Oxygene.MI.DebugStackFrame aFrame, System.String aExpr) [0x0004c] in <0c1df5808a6740cdbdd82c96cefba78b>:0
~> at RemObjects.Oxygene.CoreDebugEngine.MIDebugEngine.EvaluateExpression (RemObjects.Oxygene.CoreDebugEngine.StackFrameInfo aContext, System.String s) [0x0001e] in <8203318e38704ac9b0155e36eed79315>:0
~> at RemObjects.Oxygene.CoreDebugEngine.DebugEngine+<>c__DisplayClass0.b__0 () [0x00000] in <8203318e38704ac9b0155e36eed79315>:0
~> at RemObjects.Oxygene.CoreDebugEngine.DebugEngine.SetBusy (System.Action x) [0x0001a] in <8203318e38704ac9b0155e36eed79315>:0
~> at RemObjects.Oxygene.CoreDebugEngine.DebugEngine.Evaluate (RemObjects.Oxygene.CoreDebugEngine.StackFrameInfo ec, System.String s, RemObjects.Oxygene.CoreDebugEngine.EvaluateFlags aFlags) [0x00048] in <8203318e38704ac9b0155e36eed79315>:0
~> at (wrapper native-to-managed) RemObjects.Oxygene.CoreDebugEngine.DebugEngine:Evaluate (RemObjects.Oxygene.CoreDebugEngine.DebugEngine,RemObjects.Oxygene.CoreDebugEngine.StackFrameInfo,string,RemObjects.Oxygene.CoreDebugEngine.EvaluateFlags,System.Exception&)
~> 0 CoreFoundation 0x00007fff37822f15 __exceptionPreprocess + 256
~> 1 libobjc.A.dylib 0x00007fff6398eefb objc_exception_throw + 48
~> 2 Fire 0x00000001032542ac +[__RemObjects_Marzipan_MZObject raiseException:] + 252
~> 3 Fire 0x000000010320cd66 -[__RemObjects_Fire_ManagedWrapper_DebugEngine Evaluate:::] + 294
~> 4 Fire 0x00000001032aa102 RemObjects_Fire_ProjectSystem_DebugSession<>c__DisplayClass54 b__0$0 + 114
~> 5 Fire 0x0000000103296907 -[__RemObjects_Fire_ProjectSystem_DebugSession doBusy::] + 151
~> 6 Fire 0x000000010329aa14 -[__RemObjects_Fire_ProjectSystem_DebugSession evaluateExpressionOnCurrentStackFrame:] + 1076
~> 7 Fire 0x0000000103434fe5 RemObjects_Fire_ProjectSystem_TextFile<>c__DisplayClass37 b__0$0 + 197
~> 8 Fire 0x0000000102d2f9e7 -[SBLSingleThreadedQueue processQueue:] + 695
~> 9 Fire 0x0000000102d2f594 -[SBLSingleThreadedQueue main] + 452
~> 10 Foundation 0x00007fff39ae5104 NSThread__start + 1218
~> 11 libsystem_pthread.dylib 0x00007fff64c49305 _pthread_body + 126
~> 12 libsystem_pthread.dylib 0x00007fff64c4c26f _pthread_start + 70
~> 13 libsystem_pthread.dylib 0x00007fff64c48415 thread_start + 13

#>
appearing in the debug pane.

Cheers,
John


(RemObjects) #2

Thanks, logged as bugs://82029


(RemObjects) #3

bugs://82029 got closed with status fixed.