Trigger Suspend/Resume in Visual Studio 11 Beta?
-
17 Maret 2012 12:49
In Windows 8 Developer preview, one can debug the Suspending event present in App.xaml.cs by using the options available in Debug menu -> Trigger Suspend.I'm unable to find the option "Trigger Suspend" in Visual Studio 11 Beta. How can I debug the same here?
In Windows 8 Developer preview, Metro app would go to suspend state in 5 sec's if user switches from one app to another app. I could not observe the same behavior in Windows 8 consumer preview. Is there any change in application life cycle in Windows 8 consumer here?
- Dipindahkan oleh Robin_YangMicrosoft Employee, Moderator 19 Maret 2012 1:54 (From:Building Metro style apps with C# or VB )
Semua Balasan
-
19 Maret 2012 15:46
In Visual Studio 11 Beta, the Suspend, Resume, and Suspend and Shutdown options are still available. They have been moved to the debugging toolbar:
~Gearard
This posting is provided "AS IS" with no warranties, and confers no rights.
- Disarankan sebagai Jawaban oleh Gearard BolandMicrosoft Employee 19 Maret 2012 15:46
- Ditandai sebagai Jawaban oleh sans_india85 20 Maret 2012 17:48
-
20 Maret 2012 2:41
Hi Gearard,
Thanks for your answer, but however I only find this to suspend or resume app "manually".
Even I build it as "release" version, I still could not suspend and resume app automatically
I could not find any setting and related document about this, could you point out any direction of this?
Best regards,
Evan Lin
-
20 Maret 2012 17:18
Hi Evan -
Are you running with the debugger attached? Even in a release build, if you are running with the debugger attached the normal process lifetime management features are disabled; the only way to trigger them would be via the commands I shared above.
~Gearard
This posting is provided "AS IS" with no warranties, and confers no rights.
-
21 Maret 2012 6:41
Hi Gearard,
Thanks for your information, I already work on my side.
I also figure out suspends event will call when I leave app about 5 seconds.
I also do some testing about sleep and hibernate, it will trigger app suspends here.
Do we need to handle any specific for sleep/hibernate during app suspends? (seems sleep/hibernate preparing time is less than 5 seconds)
~Evan Lin
-
22 April 2012 16:21
>> In Visual Studio 11 Beta, the Suspend, Resume, and Suspend and Shutdown options are still available. They have been moved to the debugging toolbar:
To save someone else from searching, the options are on the Debug Location toolbar.
-Mike
-
26 Juni 2012 15:03And where is it in VS2012 RC ?
C++ DX11
-
26 Juni 2012 15:10Oh,it just has no Name.
C++ DX11
-
14 Juli 2012 1:46
Looking myself and found it under View->toolbars->debug location