Skip to content

Commit 8c70e8c

Browse files
committed
just use end path
1 parent 6204c8d commit 8c70e8c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sourceplusplus/control/ContextReceiver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def apply_log(live_log_id, globals, locals):
9090

9191

9292
def apply_breakpoint(live_breakpoint_id, globals, locals):
93+
del locals["ContextReceiver"]
94+
9395
live_breakpoint: LiveBreakpoint = LiveInstrumentRemote.instruments[live_breakpoint_id][1]
9496
if live_breakpoint.throttle.is_rate_limited():
9597
return

sourceplusplus/control/LiveInstrumentRemote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def add_live_instrument(self, context: LiveInstrumentContext, instrument_type: L
3434
else:
3535
live_instrument = LiveMeter.from_json(i)
3636
bp = LiveInstrumentRemote.dbg.breakpoint(
37-
file=live_instrument.location.source,
37+
file=live_instrument.location.source[live_instrument.location.source.rfind("/") + 1:],
3838
line=live_instrument.location.line
3939
)
4040
LiveInstrumentRemote.instruments[live_instrument.id] = [bp, live_instrument]

0 commit comments

Comments
 (0)