简体   繁体   中英

Modular web application - Debug module code in Visual Studio

I implemented a web shell application that loads multiple modules inside. A module is also a standalone web application. So, practically I have one visual studio solutions opened for the shell application, and a visual studio solution for each module. In order to launch a module from the shell application, I manually copy the dll's of the module in the bin of the shell. The problem is that when I run the web shell, the breakpoints that I set in the module are not hit.

You have to make sure to include the location where the .pdb files are located, so that your debugger knows where the code is coming from, you could do this with the Debug >> Options and settings menu command, and then include the symbols from where your DLL was built.

Under the Load Symbols command, you can then add the location to the PDB files

在此处输入图片说明

Then you could open the source code from those locations, and set the breakpoints in your running web shell project

Some more info about it you can find here: https://msdn.microsoft.com/en-us/library/ms241613.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM