File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public static void ScriptServer_ConnectDebugger(CodeType codetype = CodeType.Man
167
167
for ( int i = 0 ; i < exeNames . Length ; i ++ )
168
168
{
169
169
var process = processes [ i ] ;
170
- if ( exeNames [ i ] == hostExePath )
170
+ if ( exeNames [ i ] . ToLower ( ) == hostExePath . ToLower ( ) )
171
171
{
172
172
// No need to attach if debugging multiple processes
173
173
if ( dte != null && dte . Debugger . DebuggedProcesses . Count <= 1 )
@@ -182,6 +182,10 @@ public static void ScriptServer_ConnectDebugger(CodeType codetype = CodeType.Man
182
182
if ( bAttached )
183
183
break ;
184
184
185
+ // Don't launch second process
186
+ if ( iTry == 1 )
187
+ break ;
188
+
185
189
ProcessStartInfo procStartInfo = new ProcessStartInfo ( ) ;
186
190
procStartInfo . Arguments = "-Embedding " + additionCommandLineArguments ;
187
191
procStartInfo . CreateNoWindow = true ;
You can’t perform that action at this time.
0 commit comments