Sam Verma
Sam Verma

Reputation: 29

Can't see the code flowing while using chrome://inspect/#devices?

I am working on an app,which I have installed in my Smartphone, I wanted to check the flow of code while running the app. using Android Studio I installed the app via USB Debugger, and open the app project files in

chrome://inspect/#devices

, while running , I have added multiple breakpoints in the code to see the flow, but the code haven't stopped at any breakpoint, yet there is no issue with the running of app, the app ran smoothly. I am facing the same issue while using emulator as well. Can someone help me to figure out, what I could do ?

EDIT - I have followed @KannanSJD instructions as well, by "Attaching Debugger to Android" and selecting "Java Only" but not got any success.enter image description here , As you can see in the below attachmentsenter image description here

Upvotes: 0

Views: 383

Answers (1)

Kannan_SJD
Kannan_SJD

Reputation: 1072

make sure you attach your debugger to your app process. Use the below icon on top left enter image description here

if your app package and its process is not showing then make sure you are running in Debug mode and not in release mode using build variants.

enter image description here

Make sure your app is open and you see your process as in screenshot. enter image description here

Also instead of detect automatically you cna use Java only if you have NDK also used in your project. This will fasten the process of attaching debugger.

Also make sure you find the following log in your debug console. enter image description here

Please check if you have muted your breakpoints, refer following image. That should NOT be enabled. enter image description here

Upvotes: 1

Related Questions