File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ protected override void OnRun (DebuggerStartInfo startInfo)
133
133
134
134
var dsi = ( SoftDebuggerStartInfo ) startInfo ;
135
135
if ( dsi . StartArgs is SoftDebuggerLaunchArgs ) {
136
+ remoteProcessName = Path . GetFileNameWithoutExtension ( dsi . Command ) ;
136
137
StartLaunching ( dsi ) ;
137
138
} else if ( dsi . StartArgs is SoftDebuggerConnectArgs ) {
138
139
StartConnecting ( dsi ) ;
@@ -714,11 +715,13 @@ protected override void OnFinish ()
714
715
protected override ProcessInfo [ ] OnGetProcesses ( )
715
716
{
716
717
if ( procs == null ) {
717
- if ( remoteProcessName != null || vm . TargetProcess == null ) {
718
+ if ( vm == null ) //process didn't start yet
719
+ return new ProcessInfo [ 0 ] ;
720
+ if ( vm . TargetProcess == null ) {
718
721
procs = new [ ] { new ProcessInfo ( 0 , remoteProcessName ?? "mono" ) } ;
719
722
} else {
720
723
try {
721
- procs = new [ ] { new ProcessInfo ( vm . TargetProcess . Id , vm . TargetProcess . ProcessName ) } ;
724
+ procs = new [ ] { new ProcessInfo ( vm . TargetProcess . Id , remoteProcessName ?? vm . TargetProcess . ProcessName ) } ;
722
725
} catch ( Exception ex ) {
723
726
if ( ! loggedSymlinkedRuntimesBug ) {
724
727
loggedSymlinkedRuntimesBug = true ;
You can’t perform that action at this time.
0 commit comments