Closed warappa closed 4 years ago
Could you send me this sample app? I don't think I have the same project structure in Rider.
Thanks!
LiveSharp is now loading ReflectionTypeLoadException.Types
. But I'm not sure that this will somehow help with the debugging. LiveSharp doesn't support debugging of the updated code since there is no mapping from the compiled Expression Tree to .cs
.
Using LiveSharp 1.5.53
While trying the fix for #79 , I stumbled over an exception message in the output (it was in another repository, not the repo in #79).
If I make a small change (return different string value) in the controller-action of the out-of-the-box
api/SampleData/WeatherForecasts
route on the host server app, I get anReflectionTypeLoadException
exception and cannot debug this controller-action anymore (as opposed to before the edit):I don't know if LiveSharp does even support debugging (hitting breakpoints) after edits,(LiveSharp supports breakpoints after edits 😀) but nonetheless LiveSharp.Runtime.dll'sLiveSharp.ServerClient.KnownTypes.EnsureTypesLoaded
may take advantage of theTypes
property inReflectionTypeLoadException
, which contains the types it still was able to load (attention:Types
may containnull
values!).While the breakpoint-not-hit is another
bugmissing feature, I guess he more loaded types the merrier, right? 😉