Unable to debug .Net Code. Could not attach to process. SQL CLR Remote Debugging

余生颓废 提交于 2019-11-29 05:22:54

Hi after a long time searching over internet, Your Question has Given me Answer of Our Question. Please understand following very carefully,

  1. Start Visual Studio 2012 with Elevated permissions of Administrator
  2. Create SQL Server Project
  3. In Project Settings/Debug Pane, Provide Connection String for Database Connection
  4. From View Menu, Open SQL Server Object Explorer, If your connection string provided in Project doesn't create Instance of Server, then Recreate connection here...
  5. Right click on Instance and Select Allow SQL CLR Debugging, it will show some warning accept everything but read warnings carefully.
  6. Save Project and perform Rebuild, and test a Publish of project by Generated Publish Script.
  7. Now Create a non-deployment script in project, put a break point press ALT+F5 to execute script with Debug option, when clr-procedure will occur and try to go inside it, it will ask for process to attach with windows, Please allow to Attach

above step worked for me, and here a screen shot of it; "http://i.stack.imgur.com/GQwlt.png"

For more information you can also contact me on; Vinod W. B. @ vinodwb@live.com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!