package com.android.internal.telephony.dataconnection;
public abstract class DcTrackerBase extends Handler {
protected BroadcastReceiver mIntentReceiver = new BroadcastReceiver ()
{
@Override
public void onReceive(Context context, Intent intent)
{
String action = intent.getAction();
if (DBG) log("onReceive: action=" + action);
[...]
In the above code, using jdb
, I'd like to set a breakpoint on the onReceive
method. I used the following command :
> stop in com.android.internal.telephony.dataconnection.DcTrackerBase$mIntentReceiver.onReceive
And I get this from jdb
:
> Deferring breakpoint com.android.internal.telephony.dataconnection.DcTrackerBase$mIntentReceiver.onReceive.
It will be set after the class is loaded.
I know that the class is already loaded, so I imagine that jdb is not finding the method I want. How should I set my breakpoint then ?
The wrangled method name is wrong.
In JDB, issue this command to inspect the
DcTrackerBase
class :As we can see, the nested class
DcTrackerBase$1
could be ourBroadcastReceiver
class. To verify, issue the following command :That's it ! To set the breakpoint properly, we type :