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

Developer technologies Visual Studio Debugging
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,426 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

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.