A super simple example of how to use chromedp to run Chrome headless with the remote debugger port programmatically (is still a wrapper around the Chrome binary).
- edit the main.go file and add the username to the Chrome path
-
go mod init example/chrome-remotedebugger-example
-
go build
- run the binary
***Note: I added a 1 minute chromedp sleep so that the remote debugger runs long enough for the remote debugging port to be interacted with. You can adjust that time slot upward as needed.