Visual studio 2022 debugging

Nazeer Khan 0 Reputation points
2024-07-24T13:02:09.1366667+00:00

how to resolve error " visual studio can not start debugging because the debug target bin\debug.exe is missing

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.
1,004 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2024-07-25T07:19:01.17+00:00

    Hello @Nazeer Khan,

    Welcome to Microsoft Q&A forum.

    First, you need to check if your project has passed the build process, make sure that there’s no build error. You can check details in VS Output Window and Error List Window.

    Second, please check following things:

    1. In Solution Explorer, right-click the solution node, select Configuration Manager, make sure that your projects have checked "Build".
    2. Right-click your project, Properties, Build, Output, make sure that the output path is correct(by default => bin\).

    Then, rebuild(Build > Rebuild Solution) your project. Run/debug your project.

    Feel free to let us know if it works:)

    Sincerely,

    Tianyu


    If the answer is the right solution, 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.


  2. Michael Taylor 54,811 Reputation points
    2024-07-26T01:43:18.4+00:00

    debug.exe is not the correct name for an application. Normally it would be bin\debug\project.exe. Beyond what others have posted I have questions:

    1. Did you create a project in VS and are now trying to debug it or did you simply open a source file?
    2. What type of project did you create (e.g. console app, class library, etc). Only applications such as console apps, WinForms, WPF and ASP.NET apps can be debugged. Also what language are you using (e.g. C++, C#, etc).
    3. Show us your Solution Explorer layout.
    4. Share with us the code you're trying to run.
    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.