诸暨汉妇网络科技有限公司

電腦技術(shù)網(wǎng) - 從此開始了解電腦、科技、手機(jī)、智能硬件、網(wǎng)絡(luò)相關(guān)的各項(xiàng)適用知識(shí)!

電腦技術(shù)網(wǎng)_it資訊_游戲攻略_手機(jī)教程_電腦教程_無線路由器設(shè)置_設(shè)置無線路由器_辦公軟件教程_電腦系統(tǒng)安裝_電腦維修知識(shí)

android studio怎么調(diào)試應(yīng)用程序?

欄目:Android系統(tǒng)技巧
已被:人瀏覽過
本文主要介紹:在android studio中新建默認(rèn)的android應(yīng)用app。 點(diǎn)擊菜單欄的Run-Attach debugger to Android process。 然后會(huì)打開Choose Process窗口。選中要調(diào)試的進(jìn)程,然后點(diǎn)擊ok。 步驟閱讀 4console中會(huì)輸出:Connec
  在android studio中新建默認(rèn)的android應(yīng)用app。

android studio怎么調(diào)試應(yīng)用程序

  點(diǎn)擊菜單欄的;Run”-;Attach debugger to Android process”。

android studio怎么調(diào)試應(yīng)用程序

  然后會(huì)打開;Choose Process”窗口。選中要調(diào)試的進(jìn)程,然后點(diǎn)擊ok。

android studio怎么調(diào)試應(yīng)用程序

  步驟閱讀

  4console中會(huì)輸出:Connected to the target VM, address: 'localhost:8601', transport: 'socket'。說明已經(jīng)可以進(jìn)行調(diào)試。

android studio怎么調(diào)試應(yīng)用程序

  5在MainActivity的第14行打斷點(diǎn),然后運(yùn)行程序,可以看到程序停在斷點(diǎn)上。

android studio怎么調(diào)試應(yīng)用程序
本文地址: http://www.laotiku.cn/android/2067.html 手機(jī)版

相關(guān)推薦Related Recommendations