From db223464df1e6f9b94c327a41dac770b91d5bb27 Mon Sep 17 00:00:00 2001 From: Chris Cunningham Date: Sat, 13 Mar 2021 12:55:16 -0400 Subject: [PATCH] fixes issues where attach command would not work if there was a space in the pydevd path --- src/main/kotlin/debugattach/MayaAttachToProcessCliState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/debugattach/MayaAttachToProcessCliState.kt b/src/main/kotlin/debugattach/MayaAttachToProcessCliState.kt index 54fab90..549cf6a 100644 --- a/src/main/kotlin/debugattach/MayaAttachToProcessCliState.kt +++ b/src/main/kotlin/debugattach/MayaAttachToProcessCliState.kt @@ -34,7 +34,7 @@ class MayaAttachToProcessCliState(runConfig: PythonRunConfiguration, env: Execut conf.sdkHome = sdkPath conf.isUseModuleSdk = false conf.scriptName = Paths.get(projectSettings.pythonCachePath.toString(), "attach_pydevd.py").toString() - conf.scriptParameters = "--port $port --pid $pid --mcPort $mcPort --pydevPath $debuggerPath" + conf.scriptParameters = "--port $port --pid $pid --mcPort $mcPort --pydevPath \"$debuggerPath\"" return MayaAttachToProcessCliState(conf, env) }