Added detailed debug logging for CLI command execution and adjusted debug path in SerialPortData.

This commit is contained in:
Michal Buzik 2026-07-28 14:02:01 +02:00
parent 5ea88265b9
commit 5a1db14e2a
2 changed files with 10 additions and 1 deletions

View File

@ -290,6 +290,9 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
public void AddRunAndCaptureJsonAsync<T>(string fileName, string args) where T : new()
{
log.Debug($"CLI: {fileName}");
log.Debug($"ARGS: {args}");
ResetStartTime();
var cts = new CancellationTokenSource();
@ -323,6 +326,12 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
try
{
log.Debug($"FileName = '{psi.FileName}'");
log.Debug($"Arguments = '{psi.Arguments}'");
log.Debug($"WorkingDirectory = '{psi.WorkingDirectory}'");
log.Debug($"Exists = {System.IO.File.Exists(psi.FileName)}");
process.Start();
var stdoutTask = process.StandardOutput.ReadToEndAsync();

View File

@ -20,7 +20,7 @@ namespace TBF.Rig.RegisterReaders.PoseidonCmdStartStop
#if DEBUG
get { return Path.Combine("C:\\","TBF","Cli", CmdClientName);}
#else
get { return Path.Combine("..","Cli", CmdClientName);}
get { return Path.Combine("C:\\","TBF","Cli", CmdClientName);}
#endif
}
public string CmdClientName { get; set; } = "HalCli.exe";