Skip to content

Commit f48dc67

Browse files
committed
Add .pdb file support
1 parent b01e905 commit f48dc67

2 files changed

Lines changed: 25 additions & 21 deletions

File tree

SSHDebugger/Host/clsHost.cs

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -297,27 +297,30 @@ String ReplaceVarsInString (String input)
297297
return sb.ToString ();
298298
}
299299

300-
String GetVar (String input)
301-
{
302-
switch (input)
303-
{
304-
case "exe-path":
305-
return build_exe_path;
306-
case "mdb-path":
307-
return build_exe_path + ".mdb";
308-
case "build-path":
309-
return Path.GetDirectoryName(build_exe_path);
310-
case "work-dir":
311-
return WorkingDir;
312-
case "RemoteTunnelPort":
313-
return RemoteTunnelPort.ToString ();
314-
case "exe-file":
315-
return Path.GetFileName (build_exe_path);
316-
default:
317-
return "?";
318-
319-
}
320-
}
300+
String GetVar(String input)
301+
{
302+
switch (input)
303+
{
304+
case "exe-path":
305+
return build_exe_path;
306+
case "mdb-path":
307+
return build_exe_path + ".mdb";
308+
case "pdb-path":
309+
//Replace Test.exe => Test.pdb
310+
return build_exe_path.Substring(0, build_exe_path.Length - ".exe".Length) + ".pdb";
311+
case "build-path":
312+
return Path.GetDirectoryName(build_exe_path);
313+
case "work-dir":
314+
return WorkingDir;
315+
case "RemoteTunnelPort":
316+
return RemoteTunnelPort.ToString();
317+
case "exe-file":
318+
return Path.GetFileName(build_exe_path);
319+
default:
320+
return "?";
321+
322+
}
323+
}
321324

322325

323326
public SoftDebuggerStartInfo DebuggerInfo (int consolePort = -1)

SSHDebugger/ssh-host.xft.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# [exe-file] = output .exe filename
2828
# [exe-path] = path to output .exe
2929
# [mdb-path] = path to output .exe.mdb
30+
# [pdb-path] = path to output .pdb
3031
# [build-path] = path to output
3132
# [work-dir] = remote working dir
3233

0 commit comments

Comments
 (0)