Debugger is not hitting breakpoint set in SharePoint 2010 application code in Visual Studio

VG 0 Reputation points
2024-09-19T11:06:43.6366667+00:00

I have my SharePoint 2010 application code in Visual studio. I did clean, rebuild and deploy solution and selected "Attach to process" w3wp.exe files from debug but the debugger is not hitting the breakpoints while working on UI. IIS reset also not helpful. Can someone please help on this.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,674 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 35,386 Reputation points Microsoft Vendor
    2024-09-20T06:49:27.0066667+00:00

    Hi @VG,

    Please check the following steps in the document

    https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/debuggers/troubleshooting-breakpoints#the-breakpoint-was-successfully-set-no-warning-but-didnt-hit


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.