Commit 60fcfac
committed
local: KNDEBUG hook to attach a debugger to a running replica
If the KNDEBUG environment variable is set, PlumedMain's constructor spins on a
volatile flag so you can attach a debugger to an already-running MD job and then
release it by flipping holdToDebug from the debugger. Inert otherwise: one
getenv and one branch.
Not upstreamable in this form -- an unbounded sleep loop in a library
constructor is not something PLUMED would accept, and the commented-out
`simulationIndex > 0` condition shows it was meant to be replica-specific. A
polished version (documented, bounded timeout, opt-in at configure time) could
be proposed separately.1 parent 064731d commit 60fcfac
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
292 | 306 | | |
293 | 307 | | |
294 | 308 | | |
| |||
0 commit comments