The Full Guide to Debugging Your Android Apps - Android Studio Tutorial

preview_player
Показать описание
With the debugger tool, you can get helpful insights into what your code does at which state. In this video, I'll show you how you can use it in your projects.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!

Join this channel to get access to perks:

Join my Discord server:

You like my free content? Here you can buy me a coffee:
Рекомендации по теме
Комментарии
Автор

Drop frame is dangerous, so don't rely on it unless absolutely necessary. What it resets is the function state and moves back the instructions. However, by then if any instructions are happened, like start a thread, the thread will still continue and not be stopped abruptly because you dropped a frame. If one of the instructions adds a value to a list (outside of function, eg., class member) then that value won't be removed back.

SriHarshaChilakapati
Автор

This is such an underrated channel, i really enjoy your content 👌

yashjani
Автор

I hate you so much for not showing me this earlier ... :D
Thank you for the tips, they are really helpful.

casaxtreme
Автор

You missed a few points. Yes you can setup breakpoints with right click. But in case you want the program execution stop for a special condition, you can right click on existing breakpoint and type in condition. That way in case when breakpoint is, say, within a loop - you won't have to click over to reach expected condition and the program will stop only when that condition is met. Also you didn't mention execute code button - very handy. Basically you can execute some additional code in runtime, when reaching a breakpoint that is locally available in current breakpoint step

antonpripachkin
Автор

didn't knew most of these..thank you

mkc
Автор

That is really helpful guide thanks. Also there is some kind of useful trick on Watches panel that you can manipulate data without rebuilding entire project for example you can change variable of array or swap's current value or something like that and the following code will be go with your manipulated variable.

gokberkyagc
Автор

Video is quite useful for beginners. But there were some points that were not shown, like adding expressions to variables, conditional breakpoints.

alsh
Автор

I am waiting for the videos day after day, can you explain the paginator,
which you presented in a previous video, with the concept of Resources and Flow that you use in your projects

easybusinessou
Автор

I didn't know about the watches 👌👏

yasserakbbach
Автор

Thanks for this great content. Finally the debugger tool doesn't look like a matrix terminal to me

azuolassaulius
Автор

Hey I have watched all your videos and recommend your channel to my colleague as well. This is superb what u are doing here.

Can you give some idea regarding how to create a custom swipe refresh with lottie animations.

Thanks in advance.

AjayVerma-guuu
Автор

You are saving my career. Thanks a lot man

johndominicjasmin
Автор

Thanks for the video!
Also, how do I enable the right panel showing all the code of the editor?

md.tariqhasan
Автор

Your channel should be named
Android developers charger 😂❤️❤️❤️❤️🇪🇬🇪🇬

We need paging 3 tutorial plz ? ❤️

hossamqandel
Автор

Is there any chance to debugged a pre-built apks in android studio? If yes, this would be a great to learn. I have an app having an issue if installed on my device as pre-built. But it's working if I installed it directly from Android Studio. Hope you can help me

risslagrosa
Автор

Bro you saving my ass for real. I'm new to Android

alphacoder
Автор

New to android studing this video was super helpful.

Can anyone kindly advise say I have an API in visual studio and my Android app in Android Studio how can I step into my visual code to debug the API when my Android app hits say a button click ?

mohdotnet
Автор

Дякую друже, це найкраще відео про дебагер

rztveoe
Автор

you missed the most important part that evaluate expressions you can use this icon for, such as you make request to a server and you have different any types of data and your request does not response success in this case you should check which data cause a problem in that poin you should comp related thing to EVALUATE EXPRESSION window and check what is the problem and what is the cause of the problem ;

NHikmetK
Автор

I cannot figure this out... I have a breakpoint on a Toast message that displays every time the code launches... Put additional breakpoints; on, before, and after. JUST to make sure I didn't do somethin stupid clicking wrong thing. I'm launching code using the debugger icon (not the run icon) just as in your tutorial. I see the debugger panel running at bottom of SDK. Then the Toast message displays but the breakpoint doesn't trip??? Is there a bug in the SDK? I'm super confused, I've used all kinds of debuggers but I have no clue what's going on here. For more details, I'm using the emulator not a external device / not USB debugging. Last note, I can click pause in the debugger panel then step to next line and it works... but it won't trip any breakpoints if I put them in the code. No clue.? There must be a bug no? Any idea how to submit a bug to Google?

UPDATE: There seems to be an issue with the build files. I created a new project and debugger works. However, on this other project, I cannot figure out how to do a clean rebuild. In other SDK's that was pretty clear but here I don't know how to delete intermediate files and create a fresh build?

exploringgodscountry