Doug Hale wrote: > I develop on Windows. > I am trying to develop a little tool to redirect stdin to a UDP port. > This allows me to redirect the log files of multiple Apache and email > servers to one place. > > The application is simple - but how do I debug it??
You mean, "How do I populate stdin so I can debug my program?" Make a file containing what you want stdin to have. Then, set the "run parameters" for your project. I think the field you want is called the "host process." It's usually used for debugging DLLs (which can't execute by themselves), but I think it would work in your situation as well. There you can configure a different command that you want Delphi to execute in lieu of your program: cmd.exe /c "udp_log_redirector.exe < input.txt" That tells the command interpreter to use the contents of your test file as stdin when it runs your program. You might need to turn on the IDE's "debug spawned processes" option since the IDE will only be loading cmd.exe, not your program. -- Rob

