Miista / pose

Replace any .NET method (including static and non-virtual) with a delegate
MIT License
26 stars 3 forks source link

Question related to debugger #47

Closed edwin-alvarez closed 7 months ago

edwin-alvarez commented 7 months ago

I read we cannot debug,

but in this example, I don't have any shim for MyClass.DoSomething2 . why the debugger is not hitting line 21

image

Miista commented 7 months ago

@edwin-alvarez This is because DoSomething2 is invoked from inside the isolated code (PoseContext.Isolate). Any code being isolated is actively rewritten and any breakpoints within that code cannot be reached.

I hope that answers your question.

Miista commented 7 months ago

@edwin-alvarez I am closing this issue. Please reach out if the above does not answer your question.