Skip to content

Commit e86bef5

Browse files
committed
Add tip about getcwd() and path maps
1 parent c16d288 commit e86bef5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎doc/Vdebug.txt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,15 @@ The remote log of the debugger (or the local, see |VdebugOptions-debug_window_le
11671167
or |VdebugOptions-debug_file_level|) may be helpful to inspect the paths that are present
11681168
in requests and responses.
11691169

1170+
If you happen to be using the same layout for all your remote servers in
1171+
different projects, you may map the same remote directory to the root of your
1172+
project. For instance, if the root of your project is always /app, and you
1173+
always run vim from the root of your projects, you may want to use the
1174+
following configuration: >
1175+
1176+
let g:vdebug_options.path_maps = {"/app": getcwd() }
1177+
<
1178+
11701179
------------------------------------------------------------------------------
11711180
9.2 Connecting the two machines *VdebugRemoteConnection*
11721181

0 commit comments

Comments
 (0)