JetBrain Rider: viewing List<> during debugging
Asked Answered
N

1

11

I'm trying to view the content of a List<> during debugging. Unfortunately I can't see them, cause I get the following message within the variables window:

corvalue.GetExactTypeSafe(out type). The object is in a zombie state. (Exception of HRESULT: 0x8013134F). The error code is CORDBG_E_OBJECT_NEUTERED, or 0x8013134F.

Does someone know what this means and how I can view the List<>? It's no compilation error cause I can normally run through the code.

Natividadnativism answered 3/9, 2018 at 11:16 Comment(1)
I think debugger cannot access to the variable in the moment you try to see it content because the parent tread is in zombie state, is that possible? her you can find a long explanation of the problem.Somatology
M
-1

sounds like you are using multi-threading. lets start with zombie state.
zombie state is when a thread that was previously started (by another thread) finally finished it work. and additionally this thread didn't return the control to the calling thread. hence, this thread is currently ain't doing anything although it wasn't terminated.This is the source of the name, the thread ain't alive and ain't dead. For more information you can check this post.
You need to simply free up all allocated resources by restarting your program or kill the parent thread\process.
If you keep having the issue in the "interesting code" You can also try to run your program with out multi threading to ensure you wouldn't encounter any zombies along the way. (:

Majesty answered 24/9, 2018 at 16:11 Comment(3)
Hi, thx for the reply. How can I run a program not with multithreading? Is this Rider specific? Cause in VS I can view the collection without problems... GreetingsNatividadnativism
I meant you can just temporary transform the interesting area to a single threaded code. If it is only for debugging.Majesty
I don't think this post answers the original question. I placed the bounty on the question for a solution to viewing the variables in RIder's debugger. VS has no problem showing their value. This answer is just an explanation of what zombie state is (not the question) and a suggestion to rewrite code to not use multithreading (not possible in my case nor a solution to the issue).Humpback

© 2022 - 2024 — McMap. All rights reserved.