Skip to content

Commit a5bf516

Browse files
committed
Added Debug.ImportDir and deprecated Debug.ImportFile
1 parent 80f327d commit a5bf516

File tree

3 files changed

+41
-30
lines changed

3 files changed

+41
-30
lines changed

Diff for: cli/debug/debug.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var (
3737
verbose bool
3838
verify bool
3939
interpreter string
40-
importFile string
40+
importDir string
4141
)
4242

4343
// NewCommand created a new `upload` command
@@ -54,7 +54,7 @@ func NewCommand() *cobra.Command {
5454
debugCommand.Flags().StringVarP(&fqbn, "fqbn", "b", "", "Fully Qualified Board Name, e.g.: arduino:avr:uno")
5555
debugCommand.Flags().StringVarP(&port, "port", "p", "", "Debug port, e.g.: COM10 or /dev/ttyACM0")
5656
debugCommand.Flags().StringVar(&interpreter, "interpreter", "console", "Debug interpreter e.g.: console, mi, mi1, mi2, mi3")
57-
debugCommand.Flags().StringVarP(&importFile, "input", "i", "", "Input file to be uploaded for debug.")
57+
debugCommand.Flags().StringVarP(&importDir, "input-dir", "", "", "Direcory containing binaries for debug.")
5858

5959
return debugCommand
6060
}
@@ -82,7 +82,7 @@ func run(command *cobra.Command, args []string) {
8282
SketchPath: sketchPath.String(),
8383
Port: port,
8484
Interpreter: interpreter,
85-
ImportFile: importFile,
85+
ImportDir: importDir,
8686
}, os.Stdin, os.Stdout, ctrlc); err != nil {
8787
feedback.Errorf("Error during Debug: %v", err)
8888
os.Exit(errorcodes.ErrGeneric)

Diff for: rpc/debug/debug.pb.go

+36-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: rpc/debug/debug.proto

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ message DebugConfigReq {
5454
string port = 4;
5555
string interpreter = 5;
5656
bool verbose = 6;
57-
string import_file = 7;
57+
string import_file = 7 [deprecated = true]; // DEPRECATED: use import_dir instead
58+
string import_dir = 8;
5859
}
5960

6061
//

0 commit comments

Comments
 (0)