Skip to content

Commit e0c4b72

Browse files
committed
修复断点问题
1 parent da570af commit e0c4b72

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

extension/script/backend/worker/breakpoint.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ function m.set_bp(clientsrc, breakpoints, content)
256256
if srcarray then
257257
local ok = false
258258
for _, src in ipairs(srcarray) do
259-
src.content = content
260259
if calcLineInfo(src, content) then
261260
ok = true
262261
end
@@ -322,12 +321,11 @@ function m.newproto(proto, src, key)
322321
local bpkey = bpClientKey(src)
323322
local wv = waitverify[bpkey]
324323
if wv then
325-
src.content = wv.content
326-
if not src.content then
324+
if not wv.content then
327325
waitverify[bpkey] = nil
328326
end
329327
if not calcLineInfo(src, wv.content) then
330-
if src.content == false then
328+
if wv.content == false then
331329
-- 降级路径:前端已上报但 sourceContent 为空
332330
verifyBreakpointWithoutLineInfo(src, wv.breakpoints)
333331
updateBreakpoint(src, wv.breakpoints)

0 commit comments

Comments
 (0)