If you are writing an interface to a command-line debugger, which
doesn't have any redirect-to-a-file option, how would you do it?
The debugger is run from within Xailer, and there are several output
windows, one for the stack of called routines, one for variables,
another for maybe an xml tree diagram of the session so far.
On the console level, each of the above output goes to STDOUT or STDERR.
So, each time that the STEP button is pressed, thereby executing a STEP
on the command line, and then e.g. a CALL STACK button or VARS command
is executed, how do you intercept STDOUT, and redirect it to one of the
windows in the Xailer form?
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
How to redirect standard output from a running ap
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
How to redirect standard output from a running ap
DC,
Sorry but I am not sure on what you need. BTW, to catch up the stdout the
easiest way to do it is to send it to a file and then open that file. I hope
it helps.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:[email=4c508b81@svctag-j7w3v3j....]4c508b81@svctag-j7w3v3j....[/email]
> If you are writing an interface to a command-line debugger, which doesn't
> have any redirect-to-a-file option, how would you do it?
>
>
> The debugger is run from within Xailer, and there are several output
> windows, one for the stack of called routines, one for variables, another
> for maybe an xml tree diagram of the session so far.
>
> On the console level, each of the above output goes to STDOUT or STDERR.
>
> So, each time that the STEP button is pressed, thereby executing a STEP on
> the command line, and then e.g. a CALL STACK button or VARS command is
> executed, how do you intercept STDOUT, and redirect it to one of the
> windows in the Xailer form?
>
>
>
Sorry but I am not sure on what you need. BTW, to catch up the stdout the
easiest way to do it is to send it to a file and then open that file. I hope
it helps.
Regards,
"DC" <NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:[email=4c508b81@svctag-j7w3v3j....]4c508b81@svctag-j7w3v3j....[/email]
> If you are writing an interface to a command-line debugger, which doesn't
> have any redirect-to-a-file option, how would you do it?
>
>
> The debugger is run from within Xailer, and there are several output
> windows, one for the stack of called routines, one for variables, another
> for maybe an xml tree diagram of the session so far.
>
> On the console level, each of the above output goes to STDOUT or STDERR.
>
> So, each time that the STEP button is pressed, thereby executing a STEP on
> the command line, and then e.g. a CALL STACK button or VARS command is
> executed, how do you intercept STDOUT, and redirect it to one of the
> windows in the Xailer form?
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
How to redirect standard output from a running ap
>>Sorry but I am not sure on what you need. BTW, to catch up the stdout
the easiest way to do it is to send it to a file and then open that
file. I hope it helps. <<
Ignacio,
Actually, I deleted the post, after figuring out how to do it. WScript
works fine, for this purpose. E.g.,
oShell := CreateObject("WScript.Shell")
oWshScriptExec = oShell:Exec(sCommandLine)
oStdIn = oWshScriptExec:StdIn
oStdErr = oWshScriptExec:StdErr
oStdOut = oWshScriptExec:StdOut
sLine := oStdErr:ReadLine()
Regards,
DC
the easiest way to do it is to send it to a file and then open that
file. I hope it helps. <<
Ignacio,
Actually, I deleted the post, after figuring out how to do it. WScript
works fine, for this purpose. E.g.,
oShell := CreateObject("WScript.Shell")
oWshScriptExec = oShell:Exec(sCommandLine)
oStdIn = oWshScriptExec:StdIn
oStdErr = oWshScriptExec:StdErr
oStdOut = oWshScriptExec:StdOut
sLine := oStdErr:ReadLine()
Regards,
DC
- ignacio
- Site Admin
- Mensajes: 9447
- Registrado: Lun Abr 06, 2015 8:00 pm
- Ubicación: Madrid, Spain
- Contactar:
How to redirect standard output from a running ap
Childers escribió el sáb, 31 julio 2010 23:08>> WScript works fine, for this purpose. E.g.,
DC
Childers,
Glad you solved.
Regards,
DC
Childers,
Glad you solved.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com