且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Nuget源代码进行调试

更新时间:2023-02-16 14:54:41

在运行程序时,您可以打开调试|模块"窗口.从那里,您可以选择DLL并浏览以找到相应的PDB文件.之后,您可以手动打开源CS文件并在其中设置断点. Visual Studio将验证PDB和CS是否与已编译的CS文件相对应,但这应该没问题,因为您将它们打包在一起.

While you are running your program, you can bring up the Debug|Modules window. From there, you can select the DLL and browse for the corresponding PDB file. After that, you can manually open the source CS file and set breakpoints in it. Visual Studio will verify if the PDB and CS correspond to the compiled CS file, but that should be alright since you package them together.