github.com/neilgarb/delve@v1.9.2-nobreaks/_fixtures/goroutine_start_line.star (about) 1 def command_goroutine_start_line(args): 2 "prints the line of source code that started each currently running goroutine" 3 gs = goroutines().Goroutines 4 for g in gs: 5 line = read_file(g.StartLoc.File).splitlines()[g.StartLoc.Line-1].strip() 6 print(g.ID, "\t", g.StartLoc.File + ":" + str(g.StartLoc.Line), "\t", line) 7 8 def main(): 9 dlv_command("config alias goroutine_start_line gsl")