Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Open devtools when DEBUG=1 is given
Browse files Browse the repository at this point in the history
Usage:
K6_BROWSER_DEBUG=1 K6_BROWSER_HEADLESS=0 ...
  • Loading branch information
inancgumus committed Dec 2, 2024
1 parent 0fbb4c7 commit 7ec05a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chromium/browser_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ func prepareFlags(lopts *common.BrowserOptions, k6opts *k6lib.Options) (map[stri
f["mute-audio"] = true
f["blink-settings"] = "primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4"
}
if lopts.Debug {
f["auto-open-devtools-for-tabs"] = true
}
ignoreDefaultArgsFlags(f, lopts.IgnoreDefaultArgs)

setFlagsFromArgs(f, lopts.Args)
Expand Down

0 comments on commit 7ec05a7

Please sign in to comment.