Fix trace-fn to use correct debug-key.