# Go Remote Debugging with vim 0. Install [vim-go](https://github.com/fatih/vim-go#install) 1. Add the following lines in ``vimrc``, so we can map the local source code files to the files inside the container. ```vim let g:go_debug_substitute_paths = [['/app/', YOUR_PATH_TO_PROJECT] " for example let g:go_debug_substitute_paths = [['/app/', '/Users/fp-od1120/Desktop/pd-dine-in-order-service/']] ``` 2. Connect to the debug server ``` :GoDebugConnect localhost:2345 ``` 3. Start debugging. For more debug operations, checkout the [debug section](https://github.com/fatih/vim-go/blob/b7506c6da8ea3a88e268a91aa6630be3e26a20a9/doc/vim-go.txt#L2303) in vim-go documentation. 4. ``:GoDebugStop`` to terminate the debug server.