2017-01-20 60 views
0

我想部署和調試UWP應用程序到物理設備上。該設備是運行Windows 10 Home的Acer Iconia W1-810 Tab 8。開發環境也是運行VS2015社區的Windows 10。宏基被設置爲開發者模式,屏幕解鎖。通用Windows應用程序調試設備不工作

根據我對this article的瞭解,我應該可以通過USB連接設備,並直接在設備上進行部署和調試。起初我無法讓PC看到設備Windows Phone IP over USB Transport (IpOverUsbSvc)被禁用。啓用這意味着我現在可以在Phones類別下的網絡上看到表格。

在VS的項目也被設置爲Uninstall and then re-install my package ...

選擇Device在VS調試目標產生這樣的錯誤:

DEP6200 : Bootstrapping failed. Device cannot be found. 0x89731810: Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on.

選擇Remote Machine爲目標設備yeilds:

Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '192.168.0.7'. The Visual Studio 2015 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.

這是可以理解的,因爲我目前沒有安裝它。但從我的理解,第一種情況應該是工作,我寧可不在設備上安裝調試器,除非絕對需要。

爲了得到第一個調試場景,我需要配置什麼?

回答

1

這聽起來像你可能沒有在你的目標機器上安裝Visual Studio遠程工具。您需要先執行該操作,然後才能進行任何遠程調試。

下面是說明:

  1. https://msdn.microsoft.com/en-us/library/y7f5zaaa.aspx
  2. 提供的一個鏈接,下載Visual Studio遠程工具上的目標在目標機器上安裝遠程工具
  3. 啓動遠程調試器機器
  4. 從視覺工作室點擊小缺少調試按鈕右邊的箭頭,並確保選擇了「遠程機器」
  5. 當pro請輸入要調試的設備的IP地址。

(這聽起來像你已經知道了步驟4和5,但我列入他們的完整性)

相關問題