Bug 13925 - [1.6.x] Stop debugging option does not cancel the build or prevent a debug session from being started
Summary: [1.6.x] Stop debugging option does not cancel the build or prevent a debug se...
Status: RESOLVED DUPLICATE of bug 9179
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.6.x
Hardware: PC Windows
: Normal normal
Target Milestone: 1.12 (Merge)
Assignee: Vinicius Jarina
Depends on:
Reported: 2013-08-12 12:54 UTC by Peter Collins
Modified: 2015-01-05 11:20 UTC (History)
7 users (show)

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

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 on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Peter Collins 2013-08-12 12:54:29 UTC
Immediately clicking on "Stop Debugging" while the remote build is in process does not cancel the build, and will still deploy the application to device / simulator and start a debugging session [0]

If the user attempts to start and stop debugging a few times in quick succession, the application and debugging sessions are restarted repetitively. This also resulted in an exception being thrown in VS [1].

We should likely either disable the "stop debugging" button until the application is deployed and the debugging session is successfully started, or, if possible, properly kill the build / debugging processes in this scenario.

Steps to reproduce:
1) Open or create an XIVS project.
2) Connect to a build host, and start debugging.
3) Stop debugging while the remote build is occurring.
4) Repeat steps 2) and 3) a few times.

[0] http://screencast.com/t/VpYBNfaYi
[1] https://gist.github.com/pjcollins/863db592a94e14a52517

Environment Details:
VS 2010
XI VS 1.4.2 (1.4-series / 7e177260)
XA 4.8.2-32 (master / 33e5abc7)
Comment 1 Dominique Louis 2013-08-12 13:54:27 UTC
Jarina, I don't believe we are issuing any commands to cancel the build after we've initiated the remote build. That would certainly give the best UX. 

Having said that, Peter's suggestion of disabling the stop debugging button, may be the quicker fix for now, until we have time to implement the better UX later.
Comment 2 Peter Collins 2013-10-08 16:12:08 UTC
Still seeing this behavior in the latest on the 1.6-series branch. Potentially related Build Cancellation bug is Bug #14015.
Comment 3 Vinicius Jarina 2013-10-09 22:32:56 UTC
This is the dup of #9179

We are not issuing any CancellBuild command.

Dominique should we start this rightn now? I think we should add this to master only. (not 1.6)

*** This bug has been marked as a duplicate of bug 9179 ***