What do you log in your desktop applications to improve stability?

前端 未结 3 1835
囚心锁ツ
囚心锁ツ 2020-12-28 19:38

I\'ve started using SmartInspect in my Delphi applications because my users were running into bugs/problems I couldn\'t reproduce on my machine. When I have a general idea o

3条回答
  •  情深已故
    2020-12-28 20:41

    For UI-driven applications here are the main things I instrument first:

    1. ActionManager or ActionList's events when an action executes (gives me a user clicked here then here then here list).

    2. Unhandled Exceptions with tracebacks using JCL debug go right in my main log, whereas if I was using MadExcept or EurekaLog, exceptions have their own log.

    3. Background thread starts, stops and significant history events

    4. Warnings, errors, API function failures, file access failures, handled (caught) exceptions.

提交回复
热议问题