From af2fc856bdb71cf7809667f449e3e69b196a8b12 Mon Sep 17 00:00:00 2001 From: Brandon Fergerson Date: Wed, 12 Oct 2022 22:48:02 +0400 Subject: [PATCH] chore: add logging --- .../jetbrains/sourcemarker/service/LiveInstrumentManager.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/LiveInstrumentManager.kt b/plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/LiveInstrumentManager.kt index fd1adb76c..5563bfa32 100644 --- a/plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/LiveInstrumentManager.kt +++ b/plugin/src/main/kotlin/spp/jetbrains/sourcemarker/service/LiveInstrumentManager.kt @@ -105,12 +105,15 @@ class LiveInstrumentManager( override fun onBreakpointAddedEvent(event: LiveBreakpoint) { ApplicationManager.getApplication().invokeLater { + log.debug("Breakpoint added: $event") val fileMarker = SourceMarker.getInstance(project).getSourceFileMarker(event.location.source) if (fileMarker != null) { val smId = event.meta["original_source_mark"] as String? ?: return@invokeLater val inlayMark = SourceMarker.getInstance(project).getSourceMark(smId) ?: return@invokeLater inlayMark.putUserData(SourceMarkerKeys.INSTRUMENT_ID, event.id) inlayMark.getUserData(SourceMarkerKeys.STATE_BAR)!!.setLiveInstrument(event) + } else { + log.debug("No file marker found for ${event.location.source}") } } }