{"record":{"id":"92b787b886fe4b4b","repo":"go-delve/delve","slug":"could-not-continue-thread","errorCode":null,"errorMessage":"could not continue thread","messagePattern":"could not continue thread","errorType":"exception","errorClass":"ErrContinueThread","httpStatus":null,"severity":"error","filePath":"pkg/proc/native/threads_darwin.go","lineNumber":32,"sourceCode":"\n\t\"github.com/go-delve/delve/pkg/proc\"\n\t\"github.com/go-delve/delve/pkg/proc/amd64util\"\n)\n\n// waitStatus is a synonym for the platform-specific WaitStatus\ntype waitStatus sys.WaitStatus\n\n// osSpecificDetails holds information specific to the OSX/Darwin\n// operating system / kernel.\ntype osSpecificDetails struct {\n\tthreadAct C.thread_act_t\n\tregisters C.x86_thread_state64_t\n\texists    bool\n}\n\n// ErrContinueThread is the error returned when a thread could not\n// be continued.\nvar ErrContinueThread = fmt.Errorf(\"could not continue thread\")\n\nfunc (t *nativeThread) stop() (err error) {\n\tkret := C.thread_suspend(t.os.threadAct)\n\tif kret != C.KERN_SUCCESS {\n\t\terrStr := C.GoString(C.mach_error_string(C.mach_error_t(kret)))\n\t\t// check that the thread still exists before complaining\n\t\terr2 := t.dbp.updateThreadList()\n\t\tif err2 != nil {\n\t\t\terr = fmt.Errorf(\"could not suspend thread %d %s (additionally could not update thread list: %v)\", t.ID, errStr, err2)\n\t\t\treturn\n\t\t}\n\n\t\tif _, ok := t.dbp.threads[t.ID]; ok {\n\t\t\terr = fmt.Errorf(\"could not suspend thread %d %s\", t.ID, errStr)\n\t\t\treturn\n\t\t}\n\t}\n\treturn","sourceCodeStart":14,"sourceCodeEnd":50,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/native/threads_darwin.go#L14-L50","documentation":"Error \"could not continue thread\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/native/threads_darwin.go:32 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a23773e6c31361e43246bc43a424ee009679b174","analyzedAt":"2026-08-31T15:12:45.221Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}