diff --git a/esphome/components/api/__init__.py b/esphome/components/api/__init__.py index 208d0a2ee9..2f67d020a3 100644 --- a/esphome/components/api/__init__.py +++ b/esphome/components/api/__init__.py @@ -204,6 +204,7 @@ async def to_code(config): # Enable heap tracing in sdkconfig add_idf_sdkconfig_option("CONFIG_HEAP_TRACING", True) add_idf_sdkconfig_option("CONFIG_HEAP_TRACE_STACK_DEPTH", "30") + add_idf_sdkconfig_option("CONFIG_ESP32_APPTRACE_ENABLE", True) # Set tracing mode (standalone or system) if heap_tracing_config[CONF_HEAP_TRACING_STANDALONE]: