mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
fix breakpoints don't trigger when hit (#37)
* add errorcode to empty jdwp results * use an empty line table if the command request fails
This commit is contained in:
@@ -1425,6 +1425,15 @@ Debugger.prototype = {
|
|||||||
cmd: this.JDWP.Commands.lineTable(methodinfo.owningclass, methodinfo),
|
cmd: this.JDWP.Commands.lineTable(methodinfo.owningclass, methodinfo),
|
||||||
})
|
})
|
||||||
.then(function (linetable, methodinfo) {
|
.then(function (linetable, methodinfo) {
|
||||||
|
// if the request failed, just return a blank table
|
||||||
|
if (linetable.errorcode) {
|
||||||
|
linetable = {
|
||||||
|
errorcode: linetable.errorcode,
|
||||||
|
start: '00000000000000000000000000000000',
|
||||||
|
end: '00000000000000000000000000000000',
|
||||||
|
lines:[],
|
||||||
|
}
|
||||||
|
}
|
||||||
// the linetable does not correlate code indexes with line numbers
|
// the linetable does not correlate code indexes with line numbers
|
||||||
// - location searching relies on the table being ordered by code indexes
|
// - location searching relies on the table being ordered by code indexes
|
||||||
linetable.lines.sort(function (a, b) {
|
linetable.lines.sort(function (a, b) {
|
||||||
|
|||||||
@@ -109,7 +109,10 @@ function _JDWP() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.decoded = {empty:true};
|
this.decoded = {
|
||||||
|
empty: true,
|
||||||
|
errorcode: this.errorcode,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.decodereply = function(ths,s) {
|
this.decodereply = function(ths,s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user