调试Maven测试时,IntelliJ IDEA调试器会跳过断点 [英] IntelliJ IDEA debugger skips breakpoints when debugging Maven tests

查看:891
本文介绍了调试Maven测试时,IntelliJ IDEA调试器会跳过断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IntelliJ IDEA中调试Maven测试。当我打开IDEA的 Maven项目视图并右键单击测试目标时,我会选择调试它。单击它会执行此目标,但执行永远不会在任何断点处停止。我错过了什么?

I am trying to debug Maven tests in IntelliJ IDEA. When I open IDEA's Maven Projects view and right-click on test goal, I get an option to debug it. Clicking it executes this goal but the execution never stops at any breakpoints. What am I missing?

谢谢。

推荐答案

一个解决方案是是使用远程调试:

One solution would be to use remote debugging:


  1. 配置surefire插件:< debugForkedProcess> true< / debugForkedProcess> ; ;

运行测试(将等待远程调试器连接)

run the test (will wait for a remote debugger to connect)

这篇关于调试Maven测试时,IntelliJ IDEA调试器会跳过断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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