![microsoft visual basic for applications view variabes debug microsoft visual basic for applications view variabes debug](https://pluralsight2.imgix.net/guides/33ca0d47-046e-43de-8a5a-7153fec182b8_15.png)
For instance, if the stack referenced a third-party. You should find an entry similar to this:įAULT ->0040191c 8b4020 mov eax, ds:0023:00000020=?īelow that will be the stack for the faulting thread, and may point to at least basically what is causing the issue. The easiest way to do this is to go to the bottom of the log and then search upward by doing a Find on the word ‘fault’. But what you can do that sometimes helps is to find the actual fault itself. Under this will be quite a few pages of stack information, and unless you wrote the application probably won’t be too much help for you.
MICROSOFT VISUAL BASIC FOR APPLICATIONS VIEW VARIABES DEBUG CODE
It is fairly straightforward, but does contain very important basic data - the Name and Process ID (PID) of the application, the exception code (c0000005 in this case) and the exact time & date of the failure. OK - so the first thing to understand is what this information is telling us. Each entry starts off telling what process crashed and the basic type of crash it was:Īpp: C:\Program Files\Test\SampleApp\SMPL.exe (pid=2348)Įxception number: c0000005 (access violation)
![microsoft visual basic for applications view variabes debug microsoft visual basic for applications view variabes debug](https://www.excel-easy.com/vba/images/macro-errors/click-reset.png)
The log is written top to bottom, so the last entry in the file is the most recent crash. This file may very well be several megabytes in size, since the log may be appended to each time Dr. This location is configurable using the Dr Watson configuration tool (drwtsn32.exe) The log file is called Drwtsn32.log and it typically in the following directory:Ĭ:\Documents and Setting\All Users\Application Data\Microsoft\Dr Watson Watson will generally catch it and make a log entry as well as catch a dump of the faulting process. Debugging is very much an art, and a complicated one at that, so we are only going to touch on the really basic concepts in this discussion. You can do something as simple as viewing the Dr. A crash can be caused by something as simple as a value being set to zero when a function is expecting a non-zero response, or trying to access a section in memory that has either become damaged or that belongs to another process.ĭetermining the cause of an application crash can be very simple, or extremely complicated - depending on the failure. Watson popup and application exit, and in the case of the kernel, a Bugcheck. In the case of an user mode process that generally means a Dr. A crash is when something experiences a fault and has no choice but to exit. Watson error.įirst, let's discuss terminology. These crashes usually result in the infamous Dr. One of our common issues is troubleshooting application crashes (for example, the Print Spooler or a third-party application). First published on TECHNET on May 29, 2007