AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Script debugger microsoft3/19/2023 ![]() When you're looking for the cause of an error, you do want to see the error messages stating which line in the code generates the error. (Temporarily) disable all On Error Resume Next lines It will also help you find variables with the wrong scope (local vs. It may seem a nuisance to force yourself to declare all variables, but trust me, Option Explicit will save you a lot of time searching for errors caused by typos in variable names. Make sure you log any requirements that aren't met, and/or display descriptive error messages.Īlways use Option Explicit and declare all variables Always check if required extensions are available before trying to use them!.If you create a new instance of an object, use custom error handling with Err and IsObject to check if it was successfully created.Never assume an open Internet connection. ![]()
0 Comments
Read More
Leave a Reply. |