INNER CODE UNIT · Go
debuggerEntrypoint
iximiuz/cdebug · cmd/exec/exec.go:326
func debuggerEntrypoint(
cli cliutil.CLI,
runID string,
targetPID int,
image string,
cmd []string,
chroot bool,
) string {
if chroot {
return mustRenderTemplate(
cli,
chrootEntrypoint,
map[string]any{
"ID": runID,
"TARGET_PID": targetPID,
"IsNix": strings.Contains(image, "nixery"),
"Cmd": func() string {
if len(cmd) == 0 {