#!/usr/bin/python
import sys
if 'darwin' in sys.platform:
    sys.path.append('/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python')
sys.path.append('.')

import adapter
adapter.main.run_tcp_server()

#!/usr/bin/python
import sys
import subprocess
import string

out = subprocess.check_output(['lldb', '-P'])
sys.path.append(string.strip(out))
sys.path.append('.')

import adapter
adapter.main.run_tcp_server()

Fix adapter debugging on Linux.