简体   繁体   中英

Debugging .NET dll from script component (SSIS)

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

Thanks

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.

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.

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