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()

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.
Fix adapter debugging on Linux.

  import sys
- if 'darwin' in sys.platform:
-     sys.path.append('/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python')
+ 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.
## Code Before:
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()

## Instruction:
Fix adapter debugging on Linux.
## Code After:
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()
