Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Automating the debugging in VS 2010

Hi there;

I want to automating  the debugging in VS 2010. From this, I mean;

Suppose, you have got a small appl. having 2 forms, in the first form, 2 text boxes and 1 button, in the 2nd form, 1 text area. While debugging for the 2nd form element, I put a breakpoint in the related section of the 2nd form.

When I run for debugging, I have to enter a value in the text box and push the button in the first form at first. I don't want to do that since it's time consuming and directly go to my breakpoint in the second form. ( for 2 forms, it is not time consuming but for 100 forms it sure is).

How can we fix this?

Kind regards.
0
jazzIIIlove
Asked:
jazzIIIlove
  • 2
  • 2
3 Solutions
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Go into program.cs and change which form is passed to Application.Run():

            Application.Run(new Form2()); // <-- start with Form2 instead of the default Form1
0
 
jazzIIIloveAuthor Commented:
But if a parameter is passed from form1 to form2. This fails, right?

Kind regards.
0
 
MartanEliteCommented:
If you want Form2 to start then click My Priject in the upper right corner. Then in the Application tab look for "Startup form:" and change it to Form2
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
"But if a parameter is passed from form1 to form2. This fails, right?"

Well, yeah...if your form is dependent upon external variables then you'll either need to:
(1) Follow the normal flow of your program so they are produced and passed
(2) Hard-code the values into the form temporarily
(3) Modify the form so it pulls the values as command-line arguments and put those in the Project --> Properties --> Debug Tab
0
 
jazzIIIloveAuthor Commented:
maybe the question should be that are there any automator for filling the respective values for a solution. Is there any?

Kind regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now