简体   繁体   English

如何在 IntelliJ IDEA 中查看本地运行的 AppEngine 应用程序的调试日志?

[英]How to view debug logs of locally run AppEngine app in IntelliJ IDEA?

I have remote debugging set in IntelliJ IDEA Community 2019.2, which runs a maven goal clean compile package appengine:run and connects the debugger on 5005 using the -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 argument.我在 IntelliJ IDEA Community 2019.2 中设置了远程调试,它运行 maven 目标clean compile package appengine:run并使用-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=50055005上连接调试器争论。

In the log section of the configuration, I had enabled show logs to the console.在配置的日志部分,我启用了显示日志到控制台。 I have no log files configured for the server.我没有为服务器配置日志文件。 It only displays to standard out.它只显示标准输出。 It displays on normal run which usee clean compile package appengine:run .它在正常运行时显示,使用clean compile package appengine:run But in debug mode, I don't see any logs.但是在调试模式下,我看不到任何日志。 How to view the logs during the debug session? session调试过程中如何查看日志?

My appengine-web.xml has:我的appengine-web.xml有:

 <system-properties>
    <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
 </system-properties>

This is only supported on Intellij IDEA Ultimate edition.这仅在 Intellij IDEA Ultimate 版本上受支持。 check this documentation please.请检查此文档

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

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