Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[rd-factoring]
debug run configurations fix
  • Loading branch information
Domonion committed Nov 25, 2022
commit f56ace24a20a0a6160d5ba417b769b54b47491c6
2 changes: 1 addition & 1 deletion .run/Debug All.run.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Debug All" type="CompoundRunConfigurationType">
<toRun name="Run IDE" type="GradleRunConfiguration" />
<toRun name="Listen for Concrete Executor Process" type="Remote" />
<toRun name="Listen for Engine Process" type="Remote" />
<toRun name="Listen for Instrumented Process" type="Remote" />
<method v="2" />
</configuration>
</component>
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class InstrumentedProcessRunner {
private const val ERRORS_FILE_PREFIX = "utbot-instrumentedprocess-errors"
private const val INSTRUMENTATION_LIB = "lib"

private val DEBUG_RUN_CMD = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspendValue()},quiet=y,address=${UtSettings.instrumentedProcessDebugPort}"
private val DEBUG_RUN_CMD = "-agentlib:jdwp=transport=dt_socket,server=n,suspend=${suspendValue()},quiet=y,address=${UtSettings.instrumentedProcessDebugPort}"

private val UT_BOT_TEMP_DIR: File = File(utBotTempDirectory.toFile(), ERRORS_FILE_PREFIX)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class EngineProcess private constructor(val project: Project, rdProcess: Process
private fun suspendValue(): String = if (UtSettings.suspendEngineProcessExecutionInDebugMode) "y" else "n"

private val debugArgument: String?
get() = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspendValue()},quiet=y,address=${UtSettings.engineProcessDebugPort}"
get() = "-agentlib:jdwp=transport=dt_socket,server=n,suspend=${suspendValue()},quiet=y,address=${UtSettings.engineProcessDebugPort}"
.takeIf { UtSettings.runEngineProcessWithDebug }

private val javaExecutablePathString: Path
Expand Down