IntelliJ Tomcat中的远程调试 [英] Remote Debugging in IntelliJ Tomcat

查看:101
本文介绍了IntelliJ Tomcat中的远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Tomcat从IntelliJ启用远程调试?

解决方案

使用Tomcat 。



请注意,部署到Tomcat的是仅限IDEA Ultimate ,但您仍然可以自己手动部署到Tomcat,并使用免费版使用Java的远程调试功能。


How to enable remote debugging from IntelliJ with Tomcat?

解决方案

Use Tomcat Run/Debug Configuration. Click the button and choose new Remote configuration. In the Configuration tab copy the JVM options suggested by IDEA.

Run Tomcat with the suggested JVM options:

set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=1317,suspend=n,server=y
startup

Press Debug button in IDEA.

Otherwise it's the same as for Local Tomcat, check the tutorial.

Note that deploying to Tomcat is available only in IDEA Ultimate, but you can still manually deploy to Tomcat on your own and use Java's remote debug features using the free edition.

这篇关于IntelliJ Tomcat中的远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆