Skip to content

Commit af2fc85

Browse files
committed
chore: add logging
1 parent 2cfcc0d commit af2fc85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/LiveInstrumentManager.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,15 @@ class LiveInstrumentManager(
105105

106106
override fun onBreakpointAddedEvent(event: LiveBreakpoint) {
107107
ApplicationManager.getApplication().invokeLater {
108+
log.debug("Breakpoint added: $event")
108109
val fileMarker = SourceMarker.getInstance(project).getSourceFileMarker(event.location.source)
109110
if (fileMarker != null) {
110111
val smId = event.meta["original_source_mark"] as String? ?: return@invokeLater
111112
val inlayMark = SourceMarker.getInstance(project).getSourceMark(smId) ?: return@invokeLater
112113
inlayMark.putUserData(SourceMarkerKeys.INSTRUMENT_ID, event.id)
113114
inlayMark.getUserData(SourceMarkerKeys.STATE_BAR)!!.setLiveInstrument(event)
115+
} else {
116+
log.debug("No file marker found for ${event.location.source}")
114117
}
115118
}
116119
}

0 commit comments

Comments
 (0)