How to debug a particular .vb file in visual studio 2010

kvsr 1 Reputation point
2021-04-15T06:10:14.897+00:00

I am a beginner for VB.Net. I have written some basic codes and my project have different files like module1.vb, module2.vb, and so on.
When I start debug, it is debugging from module1 itself.
But I want to debug a particular file (ex: module5.vb) only.
I am using Microsoft visual studio 2010.
Please suggest me how to proceed?

Thanks

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.
947 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-04-16T03:15:00.94+00:00

    Hi kvsr,

    You can try to follow these steps to modify it:

    1. Right-click the project in solution explorer
    2. Click the Properties
    3. In "Application" tab, you can switch the "Startup object"
      88397-image.png

    By the way, since the visual studio 2010 is too old, and it has been out of support. We suggest you use visual studio 2019 community, and it is free for individual developer.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    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