An exception message is displayed in the visualizer window.
Expected behavior
The visualizer window will display "Hello".
Notes
Open SimpleVisualizer.DebuggerSide/Visualizer.cs, rewrite it to UseAsyncProvider = false and run again, it will work as expected.
In this case, the IVisualizerObjectProvider.GetObject method is used instead of the IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method.
Inside the implementation of the IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync method, it tries to get the object from another AppDomain, but the SerializationException was thrown because CancellationToken passed as an argument of the method is not serializable, and the method returns null.
Installed products
Description
The
IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync
method always returnsnull
.Steps to recreate
git clone https://github.com/aetos382/SimpleVisualizer.git
cd SimpleVisualizer\SimpleVisualizer.TestConsole
dotnet run
Current behavior
An exception message is displayed in the visualizer window.
Expected behavior
The visualizer window will display "Hello".
Notes
Open
SimpleVisualizer.DebuggerSide/Visualizer.cs
, rewrite it toUseAsyncProvider = false
and run again, it will work as expected. In this case, theIVisualizerObjectProvider.GetObject
method is used instead of theIAsyncVisualizerObjectProvider.GetDeserializableObjectAsync
method.Inside the implementation of the
IAsyncVisualizerObjectProvider.GetDeserializableObjectAsync
method, it tries to get the object from another AppDomain, but theSerializationException
was thrown becauseCancellationToken
passed as an argument of the method is not serializable, and the method returnsnull
.