views:

244

answers:

2

Is there a way to debug .Net dll from SSIS Script Component which is being referenced.

Thanks

+1  A: 

You can attach Visual Studio to any local process (or a remote process if the remote debugger is set up.)

  1. Open the DLL project in Visual Studio
  2. From the Debug menu (or Tools menu) select Attach to Process.
  3. Click the "Select..." button next to the box labeled "Attach To". Make sure that Debug These Code Types / Managed Code is checked.
  4. In the Available Processes list, find the SSIS process. I can't remember the process name off hand, but it should have x86, Managed in the type column. Might have to check "Show Processes from All Users".
  5. Click attach.

Now you can break into the debugger as you normally would and breakpoints should get hit. If the debug symbols can't be loaded for whatever reason, open the Modules window, find the managed DLL, right click and "Load Symbols" to find them.

Josh Einstein
A: 

System.Diagnostics.Debugger.Launch() and System.Diagnostics.Debugger.Break() can be useful with this type of problem. However try "attach to proccess" in the debug menu as Josh say first, as it it easyer when it works.

Ian Ringrose