Skip to content

Debugging

kbdavis07 edited this page Oct 9, 2014 · 2 revisions

#Debugging Costura

You can debug the code that Costura adds to your project directly in Visual Studio.

  1. In the Solution Explorer, select Show All Files and then open obj -> Debug/Release and then the template file that you wish to debug. Solution showing the template file.

  2. Put a breakpoint in the template. The breakpoint.

  3. When the breakpoint is hit Visual Studio will complain that the source file is not part of the project. You can safely ignore this message and continue debugging. Visual Studio Error saying "Entering break mode failed for the following reason: Source file 'obj/Debug/ILTemplate.cs' does not belong to the project being debugged.".

Clone this wiki locally