Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Protocol Documentation

Table of Contents

Top

cc/arduino/cli/debug/v1/debug.proto

DebugConfigRequest

FieldTypeLabelDescription
instancecc.arduino.cli.commands.v1.InstanceArduino Core Service instance from theInit response.
fqbnstringFully qualified board name of the board in use (e.g.,arduino:samd:mkr1000). If this is omitted, the FQBN attached to the sketch will be used.
sketch_pathstringPath to the sketch that is running on the board. The compiled executable is expected to be located under this path.
portcc.arduino.cli.commands.v1.PortPort of the debugger (optional).
interpreterstringWhich GDB command interpreter to use.
import_dirstringDirectory containing the compiled executable. Ifimport_dir is not specified, the executable is assumed to be in{sketch_path}/build/{fqbn}/.
programmerstringThe programmer to use for debugging.

DebugRequest

The top-level message sent by the client for theDebug method. MultipleDebugReq messages can be sent but the firstmessage must contain aDebugConfigReq message to initialize the debug session. All subsequent messages must containbytes to be sent to the debug session and must not contain aDebugReq message.

Content must be either a debug session config or data to be sent.

FieldTypeLabelDescription
debug_requestDebugConfigRequestProvides information to the debug that specifies which is the target. The firstStreamingOpenReq message must contain aDebugReq message.
databytesThe data to be sent to the target being monitored.
send_interruptboolSet this to true to send and Interrupt signal to the debugger process

DebugResponse

FieldTypeLabelDescription
databytesIncoming data from the debugger tool.
errorstringIncoming error output from the debugger tool.

GetDebugConfigResponse

FieldTypeLabelDescription
executablestringThe executable binary to debug
toolchainstringThe toolchain type used for the build (for example "gcc")
toolchain_pathstringThe toolchain directory
toolchain_prefixstringThe toolchain architecture prefix (for example "arm-none-eabi-")
serverstringThe GDB server type used to connect to the programmer/board (for example "openocd")
server_pathstringThe GDB server directory
toolchain_configurationGetDebugConfigResponse.ToolchainConfigurationEntryrepeatedExtra configuration parameters wrt toolchain
server_configurationGetDebugConfigResponse.ServerConfigurationEntryrepeatedExtra configuration parameters wrt GDB server

GetDebugConfigResponse.ServerConfigurationEntry

FieldTypeLabelDescription
keystring
valuestring

GetDebugConfigResponse.ToolchainConfigurationEntry

FieldTypeLabelDescription
keystring
valuestring

DebugService

DebugService abstracts a debug Session usage

Method NameRequest TypeResponse TypeDescription
DebugDebugRequest streamDebugResponse streamStart a debug session and communicate with the debugger tool.
GetDebugConfigDebugConfigRequestGetDebugConfigResponse

Scalar Value Types

.proto TypeNotesC++JavaPythonGoC#PHPRuby
doubledoubledoublefloatfloat64doublefloatFloat
floatfloatfloatfloatfloat32floatfloatFloat
int32Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.int32intintint32intintegerBignum or Fixnum (as required)
int64Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.int64longint/longint64longinteger/stringBignum
uint32Uses variable-length encoding.uint32intint/longuint32uintintegerBignum or Fixnum (as required)
uint64Uses variable-length encoding.uint64longint/longuint64ulonginteger/stringBignum or Fixnum (as required)
sint32Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.int32intintint32intintegerBignum or Fixnum (as required)
sint64Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.int64longint/longint64longinteger/stringBignum
fixed32Always four bytes. More efficient than uint32 if values are often greater than 2^28.uint32intintuint32uintintegerBignum or Fixnum (as required)
fixed64Always eight bytes. More efficient than uint64 if values are often greater than 2^56.uint64longint/longuint64ulonginteger/stringBignum
sfixed32Always four bytes.int32intintint32intintegerBignum or Fixnum (as required)
sfixed64Always eight bytes.int64longint/longint64longinteger/stringBignum
boolboolbooleanbooleanboolboolbooleanTrueClass/FalseClass
stringA string must always contain UTF-8 encoded or 7-bit ASCII text.stringStringstr/unicodestringstringstringString (UTF-8)
bytesMay contain any arbitrary sequence of bytes.stringByteStringstr[]byteByteStringstringString (ASCII-8BIT)

[8]ページ先頭

©2009-2025 Movatter.jp