{"id":129,"date":"2014-07-05T17:30:35","date_gmt":"2014-07-05T15:30:35","guid":{"rendered":"http:\/\/chris-codeblog.de\/?p=129"},"modified":"2014-07-05T17:30:35","modified_gmt":"2014-07-05T15:30:35","slug":"remote-debugging-von-einer-windows-vm-auf-einen-mac-host","status":"publish","type":"post","link":"https:\/\/chris-codeblog.de\/index.php\/2014\/07\/05\/remote-debugging-von-einer-windows-vm-auf-einen-mac-host\/","title":{"rendered":"Remote Android-Debugging von einer Windows VM auf einen Mac-Host"},"content":{"rendered":"<p>Heute will ich euch zeigen, wie man von einer virtuellen Windows-Maschine auf einen Android-Emulator der auf einem Mac-Host l\u00e4uft Debugger kann.<!--more--><\/p>\n<p>Was man dazu alles braucht? Als erstes muss auf dem Mac nat\u00fcrlich das Android SDK installiert sein. F\u00fcr Windows wird au\u00dferdem das kleine Programm &#8222;putty&#8220; ben\u00f6tigt. Sind diese Voraussetzungen erf\u00fcllt, kann es auch schon los gehen. Meine Einstellungen f\u00fcr den Android-Emulator sehen dabei wie folgt aus:<\/p>\n<p><a href=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/AVD-Einstellungen.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/AVD-Einstellungen.jpg\" alt=\"AVD-Einstellungen\" width=\"1024\" height=\"835\" class=\"aligncenter size-full wp-image-130\" srcset=\"https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/AVD-Einstellungen.jpg 1024w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/AVD-Einstellungen-300x245.jpg 300w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/AVD-Einstellungen-768x626.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Diesen starte ich gleich.<\/p>\n<p>Auf dem Mac m\u00fcssen wir au\u00dferdem noch den Fernzugriff erlauben. Diese Option findet man unter <b>Systemeinstellungen -> Freigaben<\/b> und dort der Punkt &#8222;Entfernte Anmeldung&#8220;. Auf der Mac-Seite bin ich damit fertig. Jetzt brauche ich nur noch die Verbindung von meiner virtuellen Maschine zum Mac. Daf\u00fcr benutze ich <b>putty<\/b>.<\/p>\n<p>Unter Session trage ich die IP ein unter der mein Macbook zu erreichen ist. Den Port lasse ich auf <b>22<\/b> stehen:<br \/>\n<a href=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/Putty-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/Putty-1.jpg\" alt=\"Putty-IP\" width=\"1024\" height=\"968\" class=\"aligncenter size-full wp-image-132\" srcset=\"https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-1.jpg 1024w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-1-300x284.jpg 300w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-1-768x726.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Unter <b>Connection -> SSH -> Tunnels<\/b> m\u00fcssen noch zwei Ports eingetragen werden. Und zwar <b>5554<\/b> und <b>5555<\/b>. Jeweils mit einem Klick auf <b>Add<\/b> werden die Ports zur Liste hinzugef\u00fcgt:<br \/>\n<a href=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/Putty-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codingathome.de\/wp-content\/uploads\/2014\/07\/Putty-2.jpg\" alt=\"Putty-Ports\" width=\"1024\" height=\"985\" class=\"aligncenter size-full wp-image-133\" srcset=\"https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-2.jpg 1024w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-2-300x289.jpg 300w, https:\/\/chris-codeblog.de\/wp-content\/uploads\/2014\/07\/Putty-2-768x739.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>Der &#8222;schwierige&#8220; Teil ist damit geschafft. Mit einem Klick auf <b>Open<\/b> wird die Verbindung zum Mac hergestellt. Hier muss man sich mit Mac-Benutzer u. Passwort anmelden. Danach einfach die Eingabekonsole in Windows starten und zu <b>adb<\/b> navigieren. Durch die Installation von RadStudio liegt dieses Tool bei mir z. B. hier: <b>C:\\Users\\Public\\Documents\\Embarcadero\\Studio\\14.0\\PlatformSDKs\\adt-bundle-windows-x86-20131030\\sdk\\platform-tools<\/b>.<br \/>\nIst man einmal am entsprechenden Pfad braucht man in der Konsole nur noch folgende Befehle eingeben: <b>adb kill-server<\/b> und <b>adb devices<\/b> Dort sollte dann auch euer Emulator erscheinen. Und schon k\u00f6nnt ihr auf den Emulator Debugger.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Heute will ich euch zeigen, wie man von einer virtuellen Windows-Maschine auf einen Android-Emulator der auf einem Mac-Host l\u00e4uft Debugger kann.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"zakra_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"footnotes":""},"categories":[2],"tags":[16,53,57,86,110,116,121,136,145],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-android","tag-emulator","tag-fernzugriff","tag-mac","tag-putty","tag-remote-debugging","tag-ssh","tag-tunnel","tag-virtuelle-maschine"],"_links":{"self":[{"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chris-codeblog.de\/index.php\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}