Skip to content

Commit 6a9377c

Browse files
committed
Added legacy arduino-builder debugging support
1 parent 8817cbc commit 6a9377c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/compile/compile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ func run(cmd *cobra.Command, args []string) {
214214
ctx.USBVidPid = flags.vidPid
215215
ctx.WarningsLevel = flags.warnings
216216

217+
if flags.debugLevel > 0 {
218+
ctx.DebugLevel = 100
219+
}
220+
217221
ctx.CustomBuildProperties = append(flags.buildProperties, "build.warn_data_percentage=75")
218222

219223
if flags.buildCachePath != "" {

0 commit comments

Comments
 (0)