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’
先看一下调试使用的JDK版本和项目的JDK版本是否不一致:
如果设置了JDK后还报错,则进行如下设置:
File ----> Setting ----> Bulid,Execution,Traces ----> Debugger ----> Async Stack Traces
取消Instrumenting agent (requires debugger restare)勾选。
0条评论
点击登录参与评论