1 / 14

Project Debugging

Project Debugging. Compile Errors: The compile time error occurs when we break the syntax rules or misspell a keyword. Use a wrong object method or property e.g if(y<x) Msgbox(“y is lesser than x”) Else Msgbox(“x is lesser than y”). Run Time Errors.

della
Download Presentation

Project Debugging

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Project Debugging • Compile Errors: • The compile time error occurs when we break the syntax rules or misspell a keyword. • Use a wrong object method or property • e.g if(y<x) • Msgbox(“y is lesser than x”) • Else • Msgbox(“x is lesser than y”)

  2. Run Time Errors • If our project halts during execution it is a run time error • Run time errors can be caused by exceptions and wrong object reference • E.g divide by 0

  3. Logic Errors • With logic errors the program runs but produce incorrect results.

  4. Design Time • The time during which we build an application in the IDE • In the development enviornment by Adding controls ,changing property settings etc.

  5. Break mode • The temporary suspension of the program execution in the development enviornment. • In the break mode we can examine,debug ,reset or continue program execution.

  6. The reasons for entering a break mode • Encountering a break point during progrtam execution. • Press ctrl+break during program execution. • Encounter an untrapped run time error during program execution. • Add a break when watch expression is true

  7. Step Into • Executes one statement at a time. • It executes the statements at the current execution point • If the statement is a call to the procedure the next statement displayed is • The first statement of the called procedure.

  8. Step Over • Similar to step into. • The difference in use occurs when the statement is a call to the procedure. • Step over executes the procedures as a unit . • The next statement displayed is the next statement in the current procedure regardless of the fact that the current statemnt is a call to another procedure or not.

  9. Step out • Execute the remaining lines of function or procedure in which the current execution point lies. • It then enters run time.

  10. Go • Executes the code from the current statement until a breakpoint is encountered • Or the end of the program is reached.

  11. Validation • Checking to verify that appropriate values • have been entered as inputs to the controls is called validation.

  12. Isnumeric function • To check the data entered is numeric or not we use the isnumeric function. • The isnumeric(x) retiurns true if the data is number else false.

  13. Multiple forms • A project can contain multiple forms. • The multiple forms can be added from the project menu ->add form sub menu. • Hide method:The hide method conceals the form from the screen. • Show method :Shows the form on the screen.

  14. Show method • There sre two intrin\sic constants for the show method. • Vbmodeless:0 • Vbmodal:1

More Related