issue #3837:Add the debug support for Mac