DaisyExamples icon indicating copy to clipboard operation
DaisyExamples copied to clipboard

Optimization and Debug settings as called from tasks.json

Open stephenhensley opened this issue 4 years ago • 1 comments

The current build_and_debug task does properly set the DEBUG flag to enable debugging symbols. However, it does not change the OPT setting from its default (-O2 I believe). For accurate debugging information this should be set to -O0 or -Og

stephenhensley avatar Apr 26 '21 17:04 stephenhensley

Something brought up in conversation earlier as well:

The build_and_debug task doesn't seem to run the clean recipe before building. So only any changed files are getting recompiled with the DEBUG flags. This can lead to some unexpected behavior.

stephenhensley avatar Sep 09 '21 23:09 stephenhensley