Search code examples
c#asp.net-mvc-4modular-design

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.


Solution

  • 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

    enter image description here

    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