Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions IDE/src/Commands.bf
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ namespace IDE
Add("Zoom Out", new => gApp.Cmd_ZoomOut);
Add("Zoom Reset", new => gApp.Cmd_ZoomReset);
Add("Attach to Process", new => gApp.[Friend]DoAttach);
Add("Remote Debug", new => gApp.[Friend]DoRemoteDebug);
Add("Move Last Selection to Next Find Match", new => gApp.Cmd_MoveLastSelectionToNextFindMatch);

Add("Test Enable Console", new => gApp.Cmd_TestEnableConsole);
Expand Down
16 changes: 16 additions & 0 deletions IDE/src/IDEApp.bf
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ namespace IDE
public FileChangedDialog mFileChangedDialog;
public FindAndReplaceDialog mFindAndReplaceDialog;
public LaunchDialog mLaunchDialog;
public RemoteDebugDialog mRemoteDebugDialog;
public SymbolReferenceHelper mSymbolReferenceHelper;
public WrappedMenuValue mViewWhiteSpace = .(false);
public bool mEnableGCCollect = true;
Expand Down Expand Up @@ -5801,6 +5802,20 @@ namespace IDE
mLaunchDialog.mOnClosed.Add(new () => { mLaunchDialog = null; });
}

[IDECommand]
void DoRemoteDebug()
{
if (mRemoteDebugDialog != null)
{
mRemoteDebugDialog.mWidgetWindow.SetForeground();
return;
}

mRemoteDebugDialog = new RemoteDebugDialog();
mRemoteDebugDialog.PopupWindow(mMainWindow);
mRemoteDebugDialog.mOnClosed.Add(new () => { mRemoteDebugDialog = null; });
}

void DoProfile()
{
if (gApp.mProfilePanel.mUserProfiler != null)
Expand Down Expand Up @@ -6330,6 +6345,7 @@ namespace IDE
AddMenuItem(subMenu, "Start With&out Compiling", "Start Without Compiling", new => UpdateMenuItem_DebugStopped_HasWorkspace);
AddMenuItem(subMenu, "&Launch Process...", "Launch Process", new => UpdateMenuItem_DebugStopped);
AddMenuItem(subMenu, "&Attach to Process...", "Attach to Process", new => UpdateMenuItem_DebugStopped);
AddMenuItem(subMenu, "Remote &Debug...", "Remote Debug", new => UpdateMenuItem_DebugStopped);
AddMenuItem(subMenu, "&Stop Debugging", "Stop Debugging", new => UpdateMenuItem_DebugOrTestRunning);
AddMenuItem(subMenu, "Break All", "Break All", new => UpdateMenuItem_DebugNotPaused);
AddMenuItem(subMenu, "Remove All Breakpoints", "Remove All Breakpoints");
Expand Down
Loading
Loading