使用Tomcat和Intellij Community Edition进行调试 [英] Debugging with Tomcat and Intellij Community Edition

查看:99
本文介绍了使用Tomcat和Intellij Community Edition进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照此处的指示启动了Tomcat: http://wiki.apache.org/tomcat/常见问题/开发使用此命令

I started Tomcat as instructed here: http://wiki.apache.org/tomcat/FAQ/Developing using this command


catalina jpda start

catalina jpda start

我设置了Intellij,如下所示

I set up Intellij as depicted below

它成功连接到调试器

但是当我点击在每一行旁边,我得到一个红色x,如下所示。我知道该行包含可执行代码。无论哪种方式都说同样的事情。

but when I click next to every single line I get a red x as shown below. I know for a fact the line contains executable code. Either way every line says the same thing.

我可能做错什么或有什么不同?

推荐答案

您必须确保在编译的代码中包含调试符号。

You must make sure you include debugging symbols in your compiled code.

这篇关于使用Tomcat和Intellij Community Edition进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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