Esempio n. 1
0
logging.root.addHandler(handler)
logger.setLevel(logging.INFO)

plugpath = os.path.realpath('../rplugin/python')
sys.path.append(plugpath)
from lldb_nvim import Middleman

NV_SOCK = 'NVIM_LISTEN_ADDRESS'  #'LLTEST_SOCK'
if NV_SOCK not in os.environ:
    print '$%s not set!' % NV_SOCK
    exit(1)

import neovim
vim = neovim.attach('socket', path=os.environ[NV_SOCK])
vim.command('leftabove vsp ab.c')
iface = Middleman(vim)

from time import sleep
delay = 1
iface._session(['load'])
sleep(delay)
iface._mode('debug')
sleep(2 * delay)
iface._exec('continue')
sleep(delay)
iface._stdin('4\n')
sleep(delay)
iface._exec('continue')
sleep(delay)
iface._mode('code')
Esempio n. 2
0
logging.root.addHandler(handler)
logger.setLevel(logging.INFO)

plugpath = os.path.realpath('../rplugin/python')
sys.path.append(plugpath)
from lldb_nvim import Middleman

NV_SOCK = 'NVIM_LISTEN_ADDRESS' #'LLTEST_SOCK'
if NV_SOCK not in os.environ:
  print '$%s not set!' % NV_SOCK
  exit(1)

import neovim
vim = neovim.attach('socket', path=os.environ[NV_SOCK])
vim.command('leftabove vsp ab.c')
iface = Middleman(vim)

from time import sleep
delay = 1
iface._session(['load'])
sleep(delay)
iface._mode('debug')
sleep(2*delay)
iface._exec('continue')
sleep(delay)
iface._stdin('4\n')
sleep(delay)
iface._exec('continue')
sleep(delay)
iface._mode('code')
Esempio n. 3
0
NV_SOCK = 'NVIM_LISTEN_ADDRESS'  #'LLTEST_SOCK'
if NV_SOCK not in os.environ:
    print '$%s not set!' % NV_SOCK
    exit(1)

import neovim
vim = neovim.attach('socket', path=os.environ[NV_SOCK])
vim.command('leftabove vsp ab.c')

plugpath = os.path.realpath('../rplugin/python')
sys.path.append(plugpath)

try:
    from lldb_nvim import Middleman
    iface = Middleman(vim)

    from time import sleep
    delay = 1
    iface._session(['load', 'lldb-nvim.json'])
    sleep(delay)
    iface._mode('debug')
    sleep(2 * delay)
    iface._exec('continue')
    sleep(delay)
    iface._stdin('4\n')
    sleep(delay)
    iface._exec('continue')
    sleep(delay)
    iface._mode('code')
    iface._exit()  # Don't forget to exit!
Esempio n. 4
0
NV_SOCK = 'NVIM_LISTEN_ADDRESS' #'LLTEST_SOCK'
if NV_SOCK not in os.environ:
  print '$%s not set!' % NV_SOCK
  exit(1)

import neovim
vim = neovim.attach('socket', path=os.environ[NV_SOCK])
vim.command('leftabove vsp ab.c')

plugpath = os.path.realpath('../rplugin/python')
sys.path.append(plugpath)

try:
  from lldb_nvim import Middleman
  iface = Middleman(vim)

  from time import sleep
  delay = 1
  iface._session(['load', 'lldb-nvim.json'])
  sleep(delay)
  iface._mode('debug')
  sleep(2*delay)
  iface._exec('continue')
  sleep(delay)
  iface._stdin('4\n')
  sleep(delay)
  iface._exec('continue')
  sleep(delay)
  iface._mode('code')
  iface._exit() # Don't forget to exit!