~/talk

GHC Plugin for Setting Breakpoints

Talkat HIW 2023 · on Monday, 2023-09-04· [developer-experience]
links:none on file
slides:none on file

A GHC plugin implements breakpoints that actually pause all threads in concurrent programs and does not require the bytecode interpreter, using a renamer plugin to capture in-scope bindings and a typechecker plugin to print values including unlifted ones via showLev. Breakpoint API variants like breakpointIO and a non-halting queryBars exist, pausing via an unsafe foreign call hack (fixed CPU issue on GHC 9.2) and even manipulating the RTS priority queue to suspend timeouts.

AI-written summary · about

  1. 0:00GHC plugin for breakpoints
  2. 1:06GHCi debugger problems
  3. 4:00Advantages of plugin approach
  4. 8:23Plugin API and breakpoint variants
  5. 9:04Renamer plugin details
  6. 12:19Type checker for value display
  7. 16:48Unpausable values and timeouts
  8. 20:46Breakpoint pitfalls and limits
  9. 21:51Future plugin ideas
  10. 22:36Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.