How to see Asan output after application finished

  address-sanitizer, c++, macos, xcode

I have an application built with address sanitizer for macOS. When address sanitizer triggers, my application dies. How to watch what causing an error after application closed. The problem is that address sanitizer writes its output to stderr, and I didn’t find a simple way to watch application’s stderr. So what are the possibilities I have to watch asan output? Maybe I can somehow catch asan signal and log its output in code? Or maybe I can redirect asan output.

Source: Windows Questions C++

LEAVE A COMMENT