Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMario Zamora
1,396 Pointshow to run the debugger ?
hi again,
I asked since day before yesterday about the debug process i can't hold accordingly as ben did in the Variables field i only got a message:
! Connected to the target VM, address: 'localhost:8626', transport: 'socket'
the result should be to visualize all process step by step by clicking each time as ben is showing to us.
Please help me to solve this out in the contrary case i won't be able to forward in my training. I'm new in android and went to android API and there's shouldn't be any problem at the time to press the icon `debug app'
Sorry for asking one more time :(
4 Answers
Seth Kroger
56,414 PointsThere are two tabs in the upper left of the debugger window Debugger and Console. What you're describing is in the Console tab. Click on Debugger. Also make sure you have a breakpoint set in code (the red dot in the left gutter) and that it's on a line of code, not a comment or blank line.
Mario Zamora
1,396 Pointshi Seth,
I already did, i followed the complete process as mentioned in the video now i have 2 issues. Of course i can see the debugger tab and there's another tab inside the debugger called Variables tab and this is where message is shown
! Connected to the target VM, address: 'localhost:8626', transport: 'socket'
and in the console tab is thrown the following code:
06/01 01:54:04: Launching app No local changes, not deploying APK $ adb shell am start -D -n "com.example.mario.stormy/com.example.mario.stormy.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Waiting for application to come online: com.example.mario.stormy.test | com.example.mario.stormy Waiting for application to come online: com.example.mario.stormy.test | com.example.mario.stormy Waiting for application to come online: com.example.mario.stormy.test | com.example.mario.stormy Connecting to com.example.mario.stormy Connected to the target VM, address: 'localhost:8636', transport: 'socket'
Checking other responses in the forum somebody posted a comment saying this could be because the Wi-Fi isn't active on the virtual device but when i turn the wi-fi on the virtual device doesn't keep the change and keep it off although i left it on previously.
Thanks in advance
Seth Kroger
56,414 PointsThe console output looks normal, and the debugger connected fine. The play icon in the very left side should be highlighted as well as the line of code in the editor your breakpoint is on.
Mario Zamora
1,396 PointsActually if you mean the icon play located in the left which is followed by 4: Run green color and line 95 with red color circle is all highlighted in red. I don't think the root cause of this problem is because i'm not working with genymotion, and with another emulator of android studio instead.
Thakns,
Seth Kroger
56,414 PointsI mean the play/pause/stop on the left side of the debugger window. Both Play and Stop should be lit up. The line the debugger is on should be highlighted in blue.
Mario Zamora
1,396 Pointsyes i can see the icons you mentioned, but my question is what icon do i have to click on ? so the variable tab is populated with all data.