Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6. fmt.Println("hello world")
  7. for i:=uint(0); i< 10; i++{
  8. fmt.Println(i)
  9. }
  10. }
  11.  
  12. $ dlv debug --headless --listen=:2345 --log --api-version=2
  13. API server listening at: [::]:2345
  14.  
  15. 2017/07/20 17:23:24 debugger.go:504: continuing
  16. 2017/07/20 17:23:24 debugger.go:493: halting
  17. 2017/07/20 17:23:24 debugger.go:347: created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x47bb52, File:"/....../hello/hello.go", Line:6, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
  18. 2017/07/20 17:23:24 debugger.go:504: continuing
  19. 2017/07/20 17:23:28 debugger.go:516: nexting
  20. hello world
  21. 2017/07/20 17:23:28 debugger.go:516: nexting
  22. 2017/07/20 17:23:29 debugger.go:516: nexting
  23. 0
  24. 2017/07/20 17:23:29 debugger.go:516: nexting
  25. 02017/07/20 17:23:29 debugger.go:516: nexting
  26. 2017/07/20 17:23:29 debugger.go:516: nexting
  27. 1
  28. 2017/07/20 17:23:29 debugger.go:516: nexting
  29. 12017/07/20 17:23:30 debugger.go:516: nexting
  30. 2017/07/20 17:23:30 debugger.go:516: nexting
  31. 2
  32. 2017/07/20 17:23:30 debugger.go:516: nexting
  33. 42017/07/20 17:23:30 debugger.go:516: nexting
  34. 2017/07/20 17:23:30 debugger.go:516: nexting
  35. 3
  36. 2017/07/20 17:23:30 debugger.go:516: nexting
  37. 92017/07/20 17:23:31 debugger.go:516: nexting
  38. 2017/07/20 17:23:31 debugger.go:516: nexting
  39. 4
  40. 2017/07/20 17:23:31 debugger.go:516: nexting
  41. 162017/07/20 17:23:31 debugger.go:516: nexting
  42. 2017/07/20 17:23:31 debugger.go:516: nexting
  43. 5
  44. 2017/07/20 17:23:32 debugger.go:516: nexting
  45. 252017/07/20 17:23:32 debugger.go:516: nexting
  46. 2017/07/20 17:23:32 debugger.go:516: nexting
  47. 6
  48. 2017/07/20 17:23:32 debugger.go:516: nexting
  49. 362017/07/20 17:23:32 debugger.go:516: nexting
  50. 2017/07/20 17:23:32 debugger.go:516: nexting
  51. 7
  52. 2017/07/20 17:23:33 debugger.go:516: nexting
  53. 492017/07/20 17:23:33 debugger.go:516: nexting
  54. 2017/07/20 17:23:33 debugger.go:516: nexting
  55. 8
  56. 2017/07/20 17:23:34 debugger.go:516: nexting
  57. 642017/07/20 17:23:34 debugger.go:516: nexting
  58. 2017/07/20 17:23:34 debugger.go:516: nexting
  59. 9
  60. 2017/07/20 17:23:34 debugger.go:516: nexting
  61. 812017/07/20 17:23:34 debugger.go:516: nexting
  62. 2017/07/20 17:23:35 debugger.go:516: nexting
  63. 2017/07/20 17:23:35 debugger.go:516: nexting
  64.  
  65. dlv debug --headless --listen=:2345 --log --api-version=2 -- --v --console
  66. 2017/07/20 17:26:51 debugger.go:97: launching process with args: [/home/...../debug --v --console]
  67. API server listening at: [::]:2345
  68.  
  69. 2017/07/20 17:26:55 debugger.go:493: halting
  70. 2017/07/20 17:26:55 debugger.go:347: created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x687a73, File:"/home/..........go", Line:136, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
  71. 2017/07/20 17:26:55 debugger.go:347: created breakpoint: &api.Breakpoint{ID:2, Name:"", Addr:0x6869b2, File:"/home/..........go", Line:66, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
  72. 2017/07/20 17:26:55 debugger.go:504: continuing
  73. 2017/07/20 17:26:55 debugger.go:347: created breakpoint: &api.Breakpoint{ID:3, Name:"", Addr:0x687d33, File:"/home/........go", Line:143, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
  74. 2017/07/20 17:26:55 debugger.go:504: continuing
  75. 2017/07/20 17:26:57 debugger.go:516: nexting
  76.  
  77. dlv connect HOSTNAME:2345
  78. Type 'help' for list of commands.
  79. (dlv) b ********.go:137
  80. Breakpoint 1 set at 0x687a86 for main.main() /home/*************.go:137
  81. (dlv) c
  82. > main.main() /home/***************************.go:137 (hits goroutine(1):1 total:1) (PC: 0x687a86)
  83. (dlv) n
  84.  
  85. $ dlv debug --headless --listen=:2345 --log --api-version=2 -- --v --console
  86. 2017/07/20 17:37:37 debugger.go:97: launching process with args: [/home/*****************/debug --v --console]
  87. API server listening at: [::]:2345
  88. 2017/07/20 17:38:27 debugger.go:347: created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x687a86, File:"/home/*******************.go", Line:137, FunctionName:"main.main", Cond:"", Tracepoint:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
  89. 2017/07/20 17:38:35 debugger.go:504: continuing
  90. 2017/07/20 17:38:39 debugger.go:516: nexting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement