mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Merge pull request #280263 from DrSergei/fix-breakpoint-range-calculation
Fix breakpoint range calculation
This commit is contained in:
@@ -1615,7 +1615,10 @@ abstract class MemoryBreakpointAction extends Action2 {
|
||||
const end = BigInt(endStr);
|
||||
const address = `0x${start.toString(16)}`;
|
||||
if (sign === '-') {
|
||||
return { address, bytes: Number(start - end) };
|
||||
if (start > end) {
|
||||
return { error: localize('dataBreakpointAddrOrder', 'End ({1}) should be greater than Start ({0})', startStr, endStr) };
|
||||
}
|
||||
return { address, bytes: Number(end - start) };
|
||||
}
|
||||
|
||||
return { address, bytes: Number(end) };
|
||||
|
||||
Reference in New Issue
Block a user