1、添加断点 2、启动调试 3、单步执行 4、观察变量和执行流程,找到并解决问题 ■ 断点的添加、取消、...
(3) idea 卡着不动/debug 执行太慢: 调试点击下一步,或者调试跳到下一个断点的时候,idea 卡着不动: ▪判断是否卡着:按键-结束调试是激活状态;重要的是在Variables 提示了一句:程序正在运行The application is running ▪程序真正(debug)结束: 原因分析: ① 可能原因1:方法断点会使得正在debug调试的程序变...
调试点击下一步,或者调试跳到下一个断点的时候,idea 卡着不动: ▪判断是否卡着:按键-结束调试是激活状态;重要的是在Variables 提示了一句:程序正在运行The application is running ▪程序真正(debug)结束: 原因分析: ① 可能原因1:方法断点会使得正在debug调试的程序变慢【建议:少用方法断点】 ② 可能原因2:...
解决方法1 找到项目下的.idea/workspace.xml,在标签<component name="PropertiesComponent">里添加一行属性: <property name="dynamic.classpath" value="true" /> 解决方法2: 打开程序的运行/调试配置(Run/Debug Configurations) 找到(Modify options) 选中(Shorten command line) 把Shorten command line改为JAR man...
importorg.springframework.beans.factory.annotation.Value;importorg.springframework.stereotype.Component;@ComponentpublicclassServerConfig{@Value("${server.port}")privateintport;publicvoidprintPort(){System.out.println("The application is running on port: "+port);}} ...
Error running 'Application': Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurations 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击...
mac的Intellij idea在debug模式下放行时,程序会卡住无响应;即使在已经放行的情况下,后续代码也不运行,console内只显示 The application is running或者等了很久程序才开始后续的运行。 0x01 解决方案 修改host中的配置。通过以下命令,打开hosts的编辑页面。 代码语言:javascript 代码运行次数:0 复制Cloud Studio 代码运行...
在IntelliJ IDEA中进行项目开发时,借助百度智能云文心快码(Comate)可以显著提升代码编写效率,但偶尔也会遇到启动项目失败并提示’Error running ‘XXXApplication’: Command line is too long’的问题。这通常是因为IDEA在尝试运行项目时,命令行参数过长。以下是一些实用的解决方案,帮助你解决这一问题,同时你也可以访问...
运行idea调试模式,报错:Error running ‘MallTest.testRun’: Command line is too long. Shorten command line for MallTest.testRun. 错误运行的测试。命令行太长。缩短命令行。 解决方案 在项目的.idea/workspace.xml文件中,找到<component name="PropertiesComponent">,后面在添加一行<property name="dynamic.cla...
简介:Idea运行报错Error running ‘Application‘: Command line is too long的解决方法 修改.idea/workspace.xml文件 <!--在 component name="PropertiesComponent" 标签里配置--><component name="PropertiesComponent"><!--新增--><property name="dynamic.classpath" value="true" /></component > ...