Thursday, October 24, 2019

nREPL debug


最近研究透過 nREPL 來除錯,發現有幾個重點

1. 透過 nREPL 可以連上 running process ,考慮安全性,通常 nREPL 只監聽 127.0.0.1
2. 如果要在 local 端開 vim 除錯,就得用 ssh 做 local port forwarding
3. 很常見的情況是,deployment machine 不可以用 ssh 直接連上 ,因為中間還又卡一個 kerberos 機。
    這樣子的話,解法還有兩種:
    (a) 我個人會採用的,是直接把 vim, vim-fireplace 灌在 deployment 機上  
         https://github.com/humorless/dotfiles/issues/8
    (b) 使用 DrawBridge