简体   繁体   English

如何在IntelliJ中查看日志文件的尾部?

[英]How view tail of log file in IntelliJ?

I'm using the latest IntelliJ and want to be able to view the output of ssh me@someserver.com tail somelogfile in IntelliJ when remote debugging. 我正在使用最新的IntelliJ,并希望在远程调试时ssh me@someserver.com tail somelogfile在IntelliJ中查看ssh me@someserver.com tail somelogfile的输出。 How would I do this? 我该怎么做?

If you have Ultimate Edition, do the following (I dont think this is available in Community edition): 如果您有Ultimate Edition,请执行以下操作(我认为这不适用于社区版):

1) Specify remote connection settings (host, port, user, pass) in: File > Settings > Build, .., Deployment 1)在以下位置指定远程连接设置(主机,端口,用户,通行证):文件>设置>构建,..,部署

2) Add a remote external tool in File > Settings > Tools > Remote SSH External Tools 2)在文件>设置>工具>远程SSH外部工具中添加远程外部工具

In "Connection Settings" choose the one created in step 1. In "Program" write "tail somelogfile". 在“连接设置”中,选择在步骤1中创建的一个。在“程序”中写入“tail somelogfile”。

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

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