解决IDEA 运行java程序不报错,debug模式报错问题。

idea有时运行java程序不报错,debug模式报错,不能使用

如图
解决IDEA 运行java程序不报错,debug模式报错问题。
其中的红字为
Unexpected error (103) returned by AddToSystemClassLoaderSearch

Unable to add C:\Users\��ǿ.IdeaIC2019.3\system\captureAgent\debugger-agent.jar to system class path - the system class loader does not define the appendToClassPathForInstrumentation method or the method failed

FATAL ERROR in native method: processing of -javaagent failed, appending to system class path failed

Disconnected from the target VM, address: ‘127.0.0.1:56209’, transport: ‘socket’

Process finished with exit code 1?

可见有乱码汉字。是中文路径的问题。

我试着包idea装在d盘下,最后也没解决问题。但这个包,不知道怎么生成的。运行的时候是没有这个文件的,所以估计是debug生成的。问了很多人,百度了很多也没解决,最后发现只要把这个框别勾选就行了。

解决IDEA 运行java程序不报错,debug模式报错问题。

觉得有用不妨点个赞 :)

解决IDEA 运行java程序不报错,debug模式报错问题。