Debugging code from dynamically loaded assembly in .net core 2.0

前端 未结 5 645
一向
一向 2021-02-05 07:27

I have a .net core 2.0 console app that does the following (simplified):

var a = Assembly.Load(Assembly.GetEntryAssembly()
                              .GetRefe         


        
5条回答
  •  深忆病人
    2021-02-05 07:43

    There is an 'Assembly.Load' override that takes PDB data as a parameter. You need to explicitly load the debug symbols.

    Check this SO post: Debug dynamically loaded assembly

    Also check out this on MSDN: https://msdn.microsoft.com/en-us/library/twt16z2x(v=vs.110).aspx

    Hope this helps

提交回复
热议问题