Contents Page

 

 

  1. How to Debug PB (Pick Basic) Program
  2. How to Debug VB (Visual basic) Program through BRIZ
  3. Some Important things to take note when debugging VB Program

 

How to Debug PB (Pick Basic) program

 

Go to your BRIZ window.

 

Click on Tools -> Always Display Output.

 

 

Go to the subroutine that needs to debug and add in the debug command

 

Close the program and compile as normal. Call the calling subroutine to start VB program.

 

 

At the bottom of the window toolbar, there is a small BRIZ Terminal icon.  Double click on it for it to

Display on screen.

 

When the program came across the debug command, it will display as shown on the screen. From here, you can continue to do the debugging of the program.

 

 

How to Debug VB (Visual Basic) program through BRIZ

 

         When doing debugging of the Visual Basic program, please ensure that the BRIZ is also open else the Visual Basic when hang once you press F5 or F8 or run button. (Important)

         Try to follow the below steps when doing debugging so as to prevent some errors.

 

         At the Calling PICK Subroutine, Add in those codes highlight in yellow as shown, so that there is no need to keep changing the code whenever there is a need to debug.

 

 

         Save and compile the Calling Pick Subroutine.

 

         Open the Visual Basic Program

Set the debug pointer (F9) to those lines of code that you wish to debug.

 

 

         Before starting to debug, go to the BRIZ window and type in the following command.

Remember to put the debug command behind. The program will continue to stop there until it detected the visual basic program being debugged.

 

         Go to your visual basic program and Click on F5 or run button  to start the debug mode. From here, you can start the debugging.

 

         If during the process of debug, the program prompts an error saying unable to create Briz Object. Please register the ^BRIZ ̄ in ROT (shown below)

 

To register the BRIZ command, Go to Tools -> Registration In ROT.

 

 

Type in ^BRIZ ̄ and click on register button

 

Close the dialog once it is listed under the registered names.

 

Try again to debug the program.

 

         Once the program has been debugged successfully, remove to uncomment those codes at the calling Pick Subroutine and delete away those code in Visual Basic.

 

Some important things to take note when Debugging VB Program

 

         If you have open PE Editor and left it there while debugging the visual basic program, you may encounter one of the error as shown in below diagram.

You may find it unable to close the PE Editor and the errors will keep popping on the BRIZ.

To close the PE Editor, Press Ctrl + Alt + Backspace for 3 seconds and the PE Editor will

Prompt for closing.

 

         Remember during anytime when you stop the Visual Basic program by the stop button, the BRIZ will hang there therefore it is always advisable not to stop the visual basic program halfway. If you have to stop it halfway before completion, restart the hanged BRIZ window.

         Please note that at any point of time, if there is a need to do some changes at the PICK subroutine that is being used by the currently debugging visual basic program, you can do it at the same time without stopping the visual basic program. Just edit the PICK subroutine and compile from PE session.

         You can do both debugging of Visual Basic program and the PICK subroutine at the same time. Just follow those steps above as mentioned. Please note you can always open more than 1 BRIZ at a time.

2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81