Skip to content

Commit

Permalink
Merge pull request #655 from adpi2/hot-code-replace1
Browse files Browse the repository at this point in the history
Reinstall all breakpoints in files that changed
  • Loading branch information
adpi2 committed Feb 12, 2024
2 parents 2d79e66 + 2d1c72c commit 47671b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class HotCodeReplaceProvider(
_ => attemptPopFrames(suspendedThreads, classesToReplace),
e => Try(warnOrThrow("Cannot pop frames")).map(_ => Seq.empty)
)
_ = publishEvent(HotCodeReplaceEvent.EventType.STARTING, "Start hot code replacement procedure...")
_ = publishEvent(HotCodeReplaceEvent.EventType.STARTING, "Starting hot code replacement...")
_ = redefineClasses(classesToReplace)
res <-
if (containsObsoleteMethods(suspendedThreads)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def checkBreakpointTask = Def.inputTask {

def checkHotCodeReplaceTask = Def.task {
val _ = (Compile / compile).value
DebugTest.runChecks(DebugState.state)(Seq(RedefineClasses(), Outputed("C")))
implicit val context: TestingContext = TestingContext(sourceToDebug.value, scalaV)
DebugTest.runChecks(DebugState.state)(Seq(RedefineClasses(), Outputed("C"), Breakpoint(6), Outputed("D")))
}

def checkNoHotCodeReplaceTask = Def.task {
Expand Down
Binary file removed sbt-launch.jar
Binary file not shown.

0 comments on commit 47671b2

Please sign in to comment.