{"id":14613,"date":"2016-03-30T20:00:48","date_gmt":"2016-03-30T20:00:48","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/?p=14613"},"modified":"2020-03-05T06:08:25","modified_gmt":"2020-03-05T14:08:25","slug":"updates-for-debugging-installed-app-packages-in-visual-studio-2015-update-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/updates-for-debugging-installed-app-packages-in-visual-studio-2015-update-2\/","title":{"rendered":"Updates for Debugging Installed App Packages in Visual Studio 2015 Update 2"},"content":{"rendered":"<p>In Visual Studio 2015 Update 2, we added support to the Debug Installed App Package dialog\u00a0for:<\/p>\n<ul>\n<li>Starting an installed application on\u00a0Xbox, HoloLens, and IoT (Internet of Things) devices<\/li>\n<li>Attaching to processes already running on IoT devices<\/li>\n<li>Sorting the apps based on &#8220;Running&#8221; or &#8220;Not Running&#8221; state<\/li>\n<\/ul>\n<p>Note that attach to process is not currently supported for Xbox or HoloLens, but we hope to add it in a future release.<\/p>\n<h2>Debugging Installed App Packages<\/h2>\n<p>Open the Debug Installed App Package dialog from Debug -&gt; Other Debug Targets -&gt; Debug Installed App Package\u2026<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/uwp1.png\"><img decoding=\"async\" style=\"padding-top: 0px; padding-left: 0px; padding-right: 0px; border: 0px;\" title=\"uwp1\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/03\/uwp1_thumb.png\" alt=\"uwp1\" width=\"633\" height=\"602\" border=\"0\" \/><\/a><\/p>\n<p>To get the list of apps to appear that you have installed on your target device (Xbox, HoloLens, or IoT), you need to first select that device. Change the selection drop down from \u201cLocal Machine\u201d to \u201cRemote Machine\u201d.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/uwp2.png\"><img decoding=\"async\" style=\"padding-top: 0px; padding-left: 0px; padding-right: 0px; border: 0px;\" title=\"uwp2\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/03\/uwp2_thumb.png\" alt=\"uwp2\" width=\"321\" height=\"155\" border=\"0\" \/><\/a><\/p>\n<p>In the Remote Connections dialog that opens, enter the \u201cAddress\u201d of your device, and make sure the Authentication Mode is set to \u201cUniversal (Unencrypted Protocol)\u201d.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/uwp3.png\"><img decoding=\"async\" style=\"padding-top: 0px; padding-left: 0px; padding-right: 0px; border: 0px;\" title=\"uwp3\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/03\/uwp3_thumb.png\" alt=\"uwp3\" width=\"432\" height=\"500\" border=\"0\" \/><\/a><\/p>\n<p>When you press Select, we will query your device for all of the applications installed and then display them in the Debug Installed App Package dialog.<\/p>\n<p>The Debug Installed App Package dialog now divides this list of installed apps into two sections, apps that are \u201cRunning\u201d and apps that are \u201cNot Running\u201d. To start debugging an app that is already installed on the device, select an app that appears in the \u201cNot Running\u201d list and then click the \u201cStart\u201d button at the bottom on the dialog. There is a known issue for Xbox and HoloLens devices where all of the apps that are installed will appear in the \u201cNot Running\u201d list (even if they are already running). Pressing \u201cStart\u201d on these apps will shut down and restart the application with debugging.<\/p>\n<p>For IoT devices, you can attach to an already running process by selecting that app from the \u201cRunning\u201d list and then clicking the \u201cAttach\u201d button at the bottom on the dialog.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/uwp4.png\"><img decoding=\"async\" style=\"padding-top: 0px; padding-left: 0px; padding-right: 0px; border: 0px;\" title=\"uwp4\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/03\/uwp4_thumb.png\" alt=\"uwp4\" width=\"634\" height=\"601\" border=\"0\" \/><\/a><\/p>\n<p>When you select an application to debug and press either \u201cAttach\u201d or \u201cStart\u201d, we will deploy the remote debugger to the device so you can start debugging. This may take a little bit of time and you will see a message for \u201cStarting remote debugger\u201d while this is happening. Note that when connecting to a remote Desktop machine you will still need to <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/hh441469.aspx#Anchor_4\">manually install and start the remote debugger<\/a> before Visual Studio can connect to it.<\/p>\n<p>The <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/hh781607.aspx#BKMK_Start_an_installed_app_in_the_debugger\">Debug Installed App Package dialog<\/a> also lets you debug Desktop UWP apps that are \u201cRunning\u201d or \u201cNot Running\u201d. So now you can use this dialog to attach to \u201cRunning\u201d desktop UWP apps to get a nice view of exactly which app you are selecting rather than just a process name like you get from the Attach to Process dialog.<\/p>\n<h2><\/h2>\n<h2>Wrap Up<\/h2>\n<p>In a future release, we plan to distinguish already \u201cRunning\u201d apps for Xbox and HoloLens devices to enable attaching to running applications. Please let us know if you have any questions in the comments section below, using the <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/b8akas30.aspx\">Send Feedback feature in Visual Studio<\/a>, or through <a href=\"https:\/\/twitter.com\/vs_debugger\">Twitter<\/a>.<\/p>\n<p>Sign up to help us improve the Visual Studio Debugger: <a href=\"https:\/\/aka.ms\/debuggerfb\">aka.ms\/debuggerfb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Studio 2015 Update 2, we added support to the Debug Installed App Package dialog\u00a0for: Starting an installed application on\u00a0Xbox, HoloLens, and IoT (Internet of Things) devices Attaching to processes already running on IoT devices Sorting the apps based on &#8220;Running&#8221; or &#8220;Not Running&#8221; state Note that attach to process is not currently supported [&hellip;]<\/p>\n","protected":false},"author":181,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,225],"tags":[],"class_list":["post-14613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-git"],"acf":[],"blog_post_summary":"<p>In Visual Studio 2015 Update 2, we added support to the Debug Installed App Package dialog\u00a0for: Starting an installed application on\u00a0Xbox, HoloLens, and IoT (Internet of Things) devices Attaching to processes already running on IoT devices Sorting the apps based on &#8220;Running&#8221; or &#8220;Not Running&#8221; state Note that attach to process is not currently supported [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/14613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/181"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=14613"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/14613\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=14613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=14613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=14613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}