IntelliJ IDEA:ClassNotFoundException如果运行Debug,执行/运行的工作 [英] IntelliJ IDEA: ClassNotFoundException if run Debug, execution/run does work

查看:1359
本文介绍了IntelliJ IDEA:ClassNotFoundException如果运行Debug,执行/运行的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java Maven项目在Eclipse中启动,在几天之后就开始工作,然后在IntelliJ IDEA中导入,再次在几天之内工作。



IDEA和通过shell中的正常运行/执行确实可以工作,但不是调试。



当我点击Bug图标进行调试时,它会打开URLClassLoader.java文件,并在Line上抛出抛出新的ClassNotFoundException(name),并暂停调试,if我单击恢复调试,它显示几个类不属于我的项目。我可以单击继续按钮,它显示相同的类,同时也会在一个连续的循环中重复出现ClassNotFoundException,并且不调试我的源代码。



如果我点击Build - >重建项目它在调试图标
热插拔失败
myClassname:模式更改未实现;
myClassname:VM不支持的操作



在变量下的调试窗口中,它说:框架不可用



在IntelliJ IDEA中调试此项目以前已经工作,出现了什么问题现在?

解决方案

看起来你在ClassNotFoundException上有异常断点。请尝试打开Run |查看断点...并取消选中Java异常断点下的断点。


I have a Java Maven Project started in Eclipse, worked on it a few days, then imported it in IntelliJ IDEA, again working on it a few days.

The normal Run/Execution in IDEA and via shell does work, but not the Debug.

When I click the Bug Icon for Debug, it opens up URLClassLoader.java file and points on the Line "throw new ClassNotFoundException(name)" and pauses the Debug, if I click Resume Debug, it shows several Classes that do not belong to my project. I can click the Resume Button endless, it shows the same classes, also ClassNotFoundException over and over again in a continuously loop and does not debug my source.

If I click Build -> Rebuild Project it says at the Debug icon "Hot Swap failed myClassname: schema change not implemented; myClassname: Operation not supported by VM"

In the Debug window under Variables it says: "Frame is not available"

The Debug of this project in IntelliJ IDEA did work previously, whats wrong now?

解决方案

Looks like you have an exception breakpoint on ClassNotFoundException. Please try to open Run | View Breakpoints... and uncheck the breakpoint under "Java Exception Breakpoints".

这篇关于IntelliJ IDEA:ClassNotFoundException如果运行Debug,执行/运行的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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