Skip to content

Commit a4bf12a

Browse files
author
Daniel Herzog
committed
DFL-3675: Setting breakpoints from JS source tooltip is broken, sets them in the wrong place
1 parent 6d79eed commit a4bf12a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecma-debugger/action_handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ window.eventHandlers.click['set-break-point'] = function(event)
184184
var span = li.querySelector(".line-number");
185185
line_number = span && Number(span.textContent);
186186
}
187-
var script_id = window.views.js_source.getCurrentScriptId() ||
188-
Number(target.get_ancestor_attr("data-script-id"));
187+
var script_id = Number(target.get_ancestor_attr("data-script-id")) ||
188+
window.views.js_source.getCurrentScriptId();
189189
if (script_id && line_number)
190190
{
191191
if (bps.script_has_breakpoint_on_line(script_id, line_number))

0 commit comments

Comments
 (0)