Idea debug报错Command line is too long

问题:

  使用idea开发Java项目,写单元测试,debug时,会有红字报错:Command line is too long

解决方法:
  在项目的目录下,找到/.idea/workspace.xml文件,打开搜索PropertiesComponent,并在PropertiesComponent内添加一行代码:<property name="dynamic.classpath" value="true" />

<component name="PropertiesComponent">
    ...
    <property name="dynamic.classpath" value="true" />
</component>
原文地址:https://www.cnblogs.com/huanshilang/p/11578760.html