英文:
Intellij debugger getting stuck at "collecting data" while testing the application with Wiremock mocks
问题
我正在为一个应用程序开发验收测试,并在WireMock中模拟所有外部API调用。这是一个Java(Spring Boot)应用程序。在IntelliJ调试器中,当我尝试查看变量或对象的内容时,它会在断点处停止,并显示"正在收集数据
"。如果我尝试恢复程序,则会显示"等待直到最后一个调试器命令完成
",并且程序会被卡住。在此期间,IntelliJ会持续使用最大内存。
注意:
-
此问题与此链接中的问题不相似。因为那是一个独立的应用程序,而这是一个Web应用程序,其外部API调用被WireMock模拟,那里提到的答案都没有帮助到我的情况。
-
我最近安装了一些插件,认为它们可能是问题的原因,所以已经将它们移除了。
-
在控制台中,我能够正确看到正在进行的API调用,因为我能够看到它们的响应。
-
我目前在没有管理员访问权限的Windows 10系统上使用IntelliJ Ultimate Edition 2020.2。
我已经被这个问题困扰了一段时间,任何帮助都将会有用。
编辑:我通过降级我的IntelliJ IDEA版本来解决了这个问题。
英文:
I am developing acceptance tests for an application and mocking all external API calls in WireMock. It is a java (Spring boot) application. In intellIj debugger it gets stuck in break points saying "Collecting data"
when I try to see the content of a variable or object. If I try to resume the program it shows waiting until the last debugger command completes
and gets stuck. during this the IntellIj keeps using it's maximum memory.
Note:
-
This question is not similar to this. As over there it is a stand alone application and here it is a web application having it's external API calls being mocked by WireMock, and none of there mentioned answered helped my case.
-
I have installed a few plugins recently and thought they might be the problem so have removed them.
-
I console I am able to see the API calls being made properly as I could see there response coming.
-
I am using IntellIj ultimate edition 2020.2 right now on a Windows 10 system without Admin access.
I have been stuck with this for a while and any help would be useful.
Edit: It got this resolved by downgrading my IntelliJ IDEA.
答案1
得分: 1
我最终通过将IntelliJ IDEA从2020.2降级到2020.1.2解决了这个问题。
英文:
I finally got it resolved by downgrading by IntelliJ IDEA to 2020.1.2 from 2020.2
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论