mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
Add some explanations for unset breakpoints
This commit is contained in:
@@ -555,6 +555,7 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
if (!javabp.vsbp) return;
|
if (!javabp.vsbp) return;
|
||||||
var verified = !!javabp.state.match(/set|enabled/);
|
var verified = !!javabp.state.match(/set|enabled/);
|
||||||
javabp.vsbp.verified = verified;
|
javabp.vsbp.verified = verified;
|
||||||
|
javabp.vsbp.message = null;
|
||||||
this.sendEvent(new BreakpointEvent('updated', javabp.vsbp));
|
this.sendEvent(new BreakpointEvent('updated', javabp.vsbp));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -598,6 +599,7 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
breakpoints: args.lines.map(l => {
|
breakpoints: args.lines.map(l => {
|
||||||
var bp = new Breakpoint(false,l);
|
var bp = new Breakpoint(false,l);
|
||||||
bp.id = ++this._breakpointId;
|
bp.id = ++this._breakpointId;
|
||||||
|
bp.message = 'The breakpoint location is outside of the project source tree';
|
||||||
return bp;
|
return bp;
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
@@ -626,6 +628,8 @@ class AndroidDebugSession extends DebugSession {
|
|||||||
const bp = new Breakpoint(verified, this.convertDebuggerLineToClient(dbgline));
|
const bp = new Breakpoint(verified, this.convertDebuggerLineToClient(dbgline));
|
||||||
// the breakpoint *must* have an id field or it won't update properly
|
// the breakpoint *must* have an id field or it won't update properly
|
||||||
bp.id = ++this._breakpointId;
|
bp.id = ++this._breakpointId;
|
||||||
|
if (javabp.state === 'notloaded')
|
||||||
|
bp.message = 'The runtime hasn\'t loaded this code location';
|
||||||
javabp.vsbp = bp;
|
javabp.vsbp = bp;
|
||||||
}
|
}
|
||||||
javabp.vsbp.order = idx;
|
javabp.vsbp.order = idx;
|
||||||
|
|||||||
Reference in New Issue
Block a user