Debug dynamically loaded assembly

前端 未结 2 857
忘掉有多难
忘掉有多难 2021-01-05 03:02

I am debugging an assembly which I loaded dynamically with Assembly.Load(Byte[]), but I am facing some problems.

First of all, I can\'t move the yellow arrow in Vis

2条回答
  •  遥遥无期
    2021-01-05 03:23

    When you pass it an array of bytes there's no way to know what file it comes from (or if it even comes from a file) so it can't locate the PDB file with the source code line information.

    You can fix this by saving the byte[] as a file and making sure there's a PDB for it with the same file name.

提交回复
热议问题