@@ -20,7 +20,6 @@ import (
20
20
"errors"
21
21
"os"
22
22
23
- cmd "github.com/arduino/arduino-cli/commands/debug"
24
23
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
25
24
)
26
25
@@ -44,7 +43,7 @@ func (s *ArduinoCoreServerImpl) Debug(stream rpc.ArduinoCoreService_DebugServer)
44
43
signalChan := make (chan os.Signal )
45
44
defer close (signalChan )
46
45
outStream := feedStreamTo (func (data []byte ) { stream .Send (& rpc.DebugResponse {Data : data }) })
47
- resp , debugErr := cmd . Debug (stream .Context (), req ,
46
+ resp , debugErr := Debug (stream .Context (), req ,
48
47
consumeStreamFrom (func () ([]byte , error ) {
49
48
command , err := stream .Recv ()
50
49
if command .GetSendInterrupt () {
@@ -63,12 +62,12 @@ func (s *ArduinoCoreServerImpl) Debug(stream rpc.ArduinoCoreService_DebugServer)
63
62
64
63
// GetDebugConfig return metadata about a debug session
65
64
func (s * ArduinoCoreServerImpl ) GetDebugConfig (ctx context.Context , req * rpc.GetDebugConfigRequest ) (* rpc.GetDebugConfigResponse , error ) {
66
- res , err := cmd . GetDebugConfig (ctx , req )
65
+ res , err := GetDebugConfig (ctx , req )
67
66
return res , convertErrorToRPCStatus (err )
68
67
}
69
68
70
69
// IsDebugSupported checks if debugging is supported for a given configuration
71
70
func (s * ArduinoCoreServerImpl ) IsDebugSupported (ctx context.Context , req * rpc.IsDebugSupportedRequest ) (* rpc.IsDebugSupportedResponse , error ) {
72
- res , err := cmd . IsDebugSupported (ctx , req )
71
+ res , err := IsDebugSupported (ctx , req )
73
72
return res , convertErrorToRPCStatus (err )
74
73
}
0 commit comments