Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to eliminate the bugs in a program of visual basic?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-01-2011
Member
 
Join Date: Dec 2010
Posts: 16
How to eliminate the bugs in a program of visual basic?
  

Hello friends, I getting lots and lots of bugs while practicing in Visual studio. I don?t know what to do? Basically, I want to know that how can we eliminate the bugs in a program of Visual basic 6.0? I know how to execute but I am not aware how to eliminate the bugs. I tried few ways but it did not worked for me. So, I want to know how we can do it, if anyone is having any knowledge or information about this question then please let me know.

Reply With Quote
  #2  
Old 03-01-2011
Member
 
Join Date: May 2009
Posts: 503
Re: How to eliminate the bugs in a program of visual basic?

Bugs in the program usually occur due to incorrect logic is called debugging. Debugging in Visual Basic includes the Pausing the Execution Using the Break button. You can click on the Break toolbar button to pause the execution of the program. Alternatively, you can select Break from the Run menu or press Ctrl + Break on the keyboard to pause execution of the program. The disadvantage of this method is that you cannot select the line where you want to pause. Using Breakpoints you can add a breakpoint to a particular line; the program is paused when execution reaches that line. To set a breakpoint, click on the gray margin indicator area at the left edge of the Code window. Alternatively, you may place the cursor on that line and click on the Toggle Breakpoint button in the Debug toolbar, choose Toggle Breakpoint form the Run menu or by pressing F9 on the keyboard.
Reply With Quote
  #3  
Old 03-01-2011
Member
 
Join Date: May 2009
Posts: 620
Re: How to eliminate the bugs in a program of visual basic?

I think that the breakpoint line will change to red color after pressing Toggle breakpoint button. To remove a breakpoint, click on the gray margin indicator area at the left edge of the Code window. Alternatively, you may place the cursor on that line and click on the Toggle Breakpoint button in the Debug toolbar, choose Toggle Breakpoint form the Run menu or by pressing F9 on the keyboard. Using the Immediate Window. The Immediate window is available at design time, run time and break time. You may execute any statements in the immediate window. It is generally used to change the current contents of the variables. A design time you can see the values of previous run but you cannot execute any code. To display the immediate window, select Immediate Window from the View menu or press Ctrl + G on the keyboard.
Reply With Quote
  #4  
Old 03-01-2011
Member
 
Join Date: May 2009
Posts: 523
Re: How to eliminate the bugs in a program of visual basic?

Well, when you eliminate the bugs you should know to check the current values of Expressions. You can check the current value of a variable or an expression during break time. You must first enter the break time, by either pausing the execution manually or by using breakpoints. Go to the Code Window by clicking on the View Code button in Project Explorer window or by selecting Code from View menu. To check the value of a variable, place the mouse pointer over that variable. To check the value of an expression, select the entire expression and place the mouse pointer over it. The value of the variable or the expression will be displayed in a tool tip like label.
Reply With Quote
  #5  
Old 03-01-2011
Member
 
Join Date: Apr 2009
Posts: 484
Re: How to eliminate the bugs in a program of visual basic?

You can step over by choosing Step Over from Debug menu, by click the Step Over button in the Debug toolbar or by pressing Shift + F9 on the keyboard. Step Over is similar to Step Into except in the case of statements which call procedures. If you step over a statement which calls a procedure, all the statements in that procedure will be executed and the next line to be executed will be the statement following the call to that procedure.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to eliminate the bugs in a program of visual basic?"
Thread Thread Starter Forum Replies Last Post
What are the steps to execute Visual basic program? Asis Software Development 3 02-01-2011 08:22 AM
Calculator program using visual basic Panchu Software Development 3 24-11-2009 07:19 PM
Is GUI same like Visual Basic ? Caesar Software Development 2 02-03-2009 01:32 PM
Visual Basic 2005 or Visual Basic 6 Aasha Software Development 5 15-01-2009 06:56 PM
Visual Basic on LAN djbbenn Software Development 2 05-08-2008 02:15 PM


All times are GMT +5.5. The time now is 02:21 PM.