mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	Put '> ' in front of the location marker.
This makes parsing by external tools much easier. It is consistent with pdb.
This commit is contained in:
		 Marko Bencun
					Marko Bencun
				
			
				
					committed by
					
						 Derek Parker
						Derek Parker
					
				
			
			
				
	
			
			
			 Derek Parker
						Derek Parker
					
				
			
						parent
						
							8faeaecb97
						
					
				
				
					commit
					ae1076ec39
				
			| @ -546,9 +546,9 @@ func printcontext(state *api.DebuggerState) error { | |||||||
| 		for _, arg := range state.CurrentThread.Function.Args { | 		for _, arg := range state.CurrentThread.Function.Args { | ||||||
| 			args = append(args, arg.Value) | 			args = append(args, arg.Value) | ||||||
| 		} | 		} | ||||||
| 		fmt.Printf("%s(%s) %s:%d\n", fn.Name, strings.Join(args, ", "), state.CurrentThread.File, state.CurrentThread.Line) | 		fmt.Printf("> %s(%s) %s:%d\n", fn.Name, strings.Join(args, ", "), state.CurrentThread.File, state.CurrentThread.Line) | ||||||
| 	} else { | 	} else { | ||||||
| 		fmt.Printf("%s() %s:%d\n", fn.Name, state.CurrentThread.File, state.CurrentThread.Line) | 		fmt.Printf("> %s() %s:%d\n", fn.Name, state.CurrentThread.File, state.CurrentThread.Line) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if state.BreakpointInfo != nil { | 	if state.BreakpointInfo != nil { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user