Bug 1250427 - get correct breakpoint text if it moved in the debugger r=me

This commit is contained in:
James Long 2016-03-03 12:21:16 -05:00
Родитель 0256c89bc6
Коммит bd0694f8b2
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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