Follow this step by step process:-
1. Go to run -> debug configuration. Select your application and press debug.
2. Before running in debugging mode, set break points where all it may be needed for your code.
3. Once you start debugging, the real device may show "Waiting for Debugger" and it may opt you to force close.
4. Don't click on force close button. As it will lead to end of your application. Wait for that dialog get closed automatically by itself.
5. Then your android studio will get control and will ask you to switch the perspective view of your studio editor, so press yes to start debugging.
6. Once you press yes, it will open debugging mode screen of android studio.
7. If you want to run step by step use F6 button
8.If you want to skip to next debugging point press F8 button.
1. Go to run -> debug configuration. Select your application and press debug.
2. Before running in debugging mode, set break points where all it may be needed for your code.
3. Once you start debugging, the real device may show "Waiting for Debugger" and it may opt you to force close.
4. Don't click on force close button. As it will lead to end of your application. Wait for that dialog get closed automatically by itself.
5. Then your android studio will get control and will ask you to switch the perspective view of your studio editor, so press yes to start debugging.
6. Once you press yes, it will open debugging mode screen of android studio.
7. If you want to run step by step use F6 button
8.If you want to skip to next debugging point press F8 button.



No comments:
Post a Comment