简体   繁体   English

如何为MS Office应用程序stdout / stderr?

[英]How to stdout/stderr for MS Office Applications?

Hey I'm working on Windows in an office environment with an uncooperative MS Access database. 嘿,我正在办公室环境中的Windows上使用不配合的MS Access数据库。

We're experiencing crashes and hangs with no error messages. 我们遇到崩溃和挂起,没有错误消息。 I am used to a *nix environment where I can launch a program from the terminal and get stdout/stderr redouts making it much easier to see what was running just before it crashed the computer... 我习惯了一个* nix环境,可以在终端上启动程序并获得stdout / stderr重做,从而更容易查看崩溃之前正在运行的内容...

Experimenting with launching from windows' cmd hasn't yielded anything similar (not dug too far into powershell because I'm not allowed admin privileges on this machine ¬_¬). 从Windows的cmd进行启动的尝试并没有产生任何类似的结果(不要深入研究Powershell,因为我不允许在此计算机上拥有管理员权限¬_¬)。 Does anyone know a way I can dig beyond a hanging GUI and get at a readout of logs, or preferably see messages piped to the command-line as the program whurrs away? 有谁知道我可以从悬而未决的GUI中挖掘并获取日志读数的方法,或者最好是在程序崩溃时看到通过管道传递到命令行的消息?

Worth noting I'm in a restrictive IT environment where I cannot install any additional tools, so whilst I'll be interested to hear about the wonder program that will solve my problems I'll be unable to install anything that isn't built in to Windows. 值得一提的是,我处于无法安装任何其他工具的限制性IT环境中,因此尽管我很想知道可以解决我的问题的Wonder程序,但将无法安装任何未内置的程序到Windows。

There is no such thing in MS Access . MS Access中没有这样的东西。

You will have to write your own error handling that will write errors to a log table or log file. 您将必须编写自己的错误处理程序,该错误处理程序会将错误写入日志表或日志文件。 Of course, this will only work until your application halts. 当然,这仅在您的应用程序停止之前有效。

The behaviour you describe is not normal, so the cause for your trouble may very well be anything but MS Access itself. 您描述的行为是不正常的,因此造成麻烦的原因很可能是MS Access本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM