Debug is a hidden object that is used to perform and debug related work. is the System Debug folder, which is used to store the log files of the debug module during the system running, so that the administrator can discover the problems of the computer based on these log files. Where the "UserMode" folder contains the current user's debug log files
A bit similar to the console in C #.
It is convenient to use debug when debugging a program.
Like Debug.Print A.
The value of a is displayed in the Immediate window below the VB interface, so that you do not have to modify the program's interface to display a or interrupt the program to view a.
Another example is when you need to a>5 somewhere, you can add a sentence Debug.Assert (a>5)
The execution of the program is paused when a<=5, and then you can see why a is not satisfied with the a>5 condition to find a code error.
An important advantage of debug is that when the program is compiled into a finished EXE, these debug statements are removed, meaning that adding the debug statement to the program does not affect the efficiency and interface of the final product. Debug is only available for debugging personnel.
Debug can be deleted, debug is recorded in your error message, the download code is automatically generated.
What is the Debug folder?