When debugging fitness functions that are external processes (i.e. as launched by ec.app.command.CommandProblem, it's helpful to see what the external process wrote to stderr.
Currently this is supposed to be saved to a file named problem_err.txt, but it doesn't seem to be working. I suspect it's not configured to append, so the file gets nuked every generation (though I'm not exactly sure why that prevents me from seeing an error in the most recent generation).
A better approach is probably to just redirect the child process's stderr to ECJ's stderr, so it outputs to the main console.
When debugging fitness functions that are external processes (i.e. as launched by
ec.app.command.CommandProblem
, it's helpful to see what the external process wrote tostderr
.Currently this is supposed to be saved to a file named
problem_err.txt
, but it doesn't seem to be working. I suspect it's not configured to append, so the file gets nuked every generation (though I'm not exactly sure why that prevents me from seeing an error in the most recent generation).A better approach is probably to just redirect the child process's
stderr
to ECJ'sstderr
, so it outputs to the main console.