2023-01-10 13:59

idea下调试debug报错,processing of -javaagent failed, appending to system class path failed

王姐姐

JavaEE

(1081)

(0)

收藏

idea下执行java程序没问题,但是debug调试则报错:

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

Unexpected error (103) returned by AddToSystemClassLoaderSearch

Unable to add C:\Users\xxxx\AppData\Local\JetBrains\IntelliJIdea2020.1\groovyHotSwap\gragent.jar to system class path - the system class loader does not define the appendToClassPathForInstrumentation method or the method failed

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

image.png

先看一下调试使用的JDK版本和项目的JDK版本是否不一致:

image.png

如果设置了JDK后还报错,则进行如下设置:

File ----> Setting ----> Bulid,Execution,Traces ----> Debugger ----> Async Stack Traces

取消Instrumenting agent (requires debugger restare)勾选。

image.png

0条评论

点击登录参与评论