@@ -53,6 +53,9 @@ func NewCommand(srv rpc.ArduinoCoreServiceServer) *cobra.Command {
5353 Long : i18n .Tr ("Debug Arduino sketches. (this command opens an interactive gdb session)" ),
5454 Example : " " + os .Args [0 ] + " debug -b arduino:samd:mkr1000 -P atmel_ice /home/user/Arduino/MySketch" ,
5555 Args : cobra .MaximumNArgs (1 ),
56+ PreRun : func (cmd * cobra.Command , args []string ) {
57+ arguments .CheckFlagsConflicts (cmd , "input-dir" , "build-path" )
58+ },
5659 Run : func (cmd * cobra.Command , args []string ) {
5760 runDebugCommand (cmd .Context (), srv , args , & portArgs , & fqbnArg , interpreter , importDir , & programmer , printInfo , & profileArg )
5861 },
@@ -64,6 +67,7 @@ func NewCommand(srv rpc.ArduinoCoreServiceServer) *cobra.Command {
6467 programmer .AddToCommand (debugCommand , srv )
6568 profileArg .AddToCommand (debugCommand , srv )
6669 debugCommand .Flags ().StringVar (& interpreter , "interpreter" , "console" , i18n .Tr ("Debug interpreter e.g.: %s" , "console, mi, mi1, mi2, mi3" ))
70+ debugCommand .Flags ().StringVarP (& importDir , "build-path" , "" , "" , i18n .Tr ("Directory containing binaries for debug." ))
6771 debugCommand .Flags ().StringVarP (& importDir , "input-dir" , "" , "" , i18n .Tr ("Directory containing binaries for debug." ))
6872 debugCommand .Flags ().BoolVarP (& printInfo , "info" , "I" , false , i18n .Tr ("Show metadata about the debug session instead of starting the debugger." ))
6973
0 commit comments