Inputs for improving code debuggability apart from logs and error codes

前端 未结 3 832
终归单人心
终归单人心 2020-12-21 02:34

Apart from error codes, error strings and logs, are there any other features which can be incorporated in the code to increase getting debug / trace information during code

3条回答
  •  长情又很酷
    2020-12-21 03:13

    • Build without optimization, to preserve as much of the "intent" of the code as possible
    • Build in debug mode, to add symbol information
    • Don't strip the executable (on Linux/Unix systems), to keep as much symbol information as possible for debuggers to use

提交回复
热议问题