You must Sign In to post a response.
  • Category: Sharepoint

    How to put debug or hit breakpoint in sharepoint application

    Are you looking for a way put debug or hit breakpoint in sharepoint application ? then read this thread to know more about it

    i have tried attaching to process of w3wp.exe and tried other tools like wsp builder but i am unable to hit the breakpoint anymore.

    what is the cause of it
  • #728536
    Bydefault compilation debug proerpty is false in web.config of sharepoint. you need to make it true
    check the steps to make it enable
    1. search the share point application web.config file bydefault it is in 'C:\Inetpub\wwwroot\wss\VirtualDirectories\80'
    2.Find the following line of code and change the debug attribute to true.

    <compilation batch="false" debug="false">

    3.Save the changes to the Web.config file.
    4.In Visual Studio, right-click the SharePoint project, and then click Properties.
    5.Click the Debug tab, and then type the target SharePoint URL in the Start browser with URL box.
    6.Place a breakpoint in the code, and then press F5.

    hope it elps

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #728540
    I have tried these things also
    but after changing debug true after clicking F5 it is updating to false

    what is the target url mean


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.