зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1250427 - get correct breakpoint text if it moved in the debugger r=me
This commit is contained in:
Родитель
0256c89bc6
Коммит
bd0694f8b2
|
@ -66,7 +66,9 @@ function addBreakpoint(location, condition) {
|
|||
setBreakpointClient(bpClient.actor, bpClient);
|
||||
|
||||
return {
|
||||
text: DebuggerView.editor.getText(bp.location.line - 1).trim(),
|
||||
text: DebuggerView.editor.getText(
|
||||
(actualLocation ? actualLocation.line : bp.location.line) - 1
|
||||
).trim(),
|
||||
|
||||
// If the breakpoint response has an "actualLocation" attached, then
|
||||
// the original requested placement for the breakpoint wasn't
|
||||
|
|
Загрузка…
Ссылка в новой задаче