Bug 61165 - If Visual Studio starts to be closed while running the debugger, the Cancel button doesn't cancel the close
Summary: If Visual Studio starts to be closed while running the debugger, the Cancel b...
Status: NEW
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Joaquin Jares
Depends on:
Reported: 2018-01-21 08:56 UTC by Gary
Modified: 2018-01-21 09:08 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

version information (1.69 KB, text/plain)
2018-01-21 08:57 UTC, Gary
screen recording of the Cancel button not preventing the close (2.48 MB, video/mp4)
2018-01-21 09:08 UTC, Gary

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 61165 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:

Description Gary 2018-01-21 08:56:30 UTC
If Visual Studio is running a debug session on the simulator or on a device, pressing command-Q starts to close the application and a confirmation dialog is shown.  The options are Cancel and Close Project.  Clicking Cancel does not stop Visual Studio from closing but that would be helpful if, for example, the user thought that the simulator had the focus so the command-Q was intended to stop the simulator, not Visual Studio.

Clicking Cancel closes Visual Studio and leaves the debug session running.  Clicking Close Project closes Visual Studio and also stops the debug session.  If there are unsaved changes in the project, the dialog that is shown has Cancel, Quit, and Save and Quit buttons.  Clicking that Cancel button does prevent Visual Studio from closing and that would be the preferred behavior even if there are no unsaved changes.
Comment 1 Gary 2018-01-21 08:57:11 UTC
Created attachment 26105 [details]
version information
Comment 2 Gary 2018-01-21 09:08:43 UTC
Created attachment 26106 [details]
screen recording of the Cancel button not preventing the close

This close is initiated via the Quit menu item for clarity but that is probably a less likely scenario than an inadvertent command-Q keystroke.