Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: headless/README.md

Issue 1845473003: headless: Replace is_headless gn setting with an args template (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better documentation. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/ui.gni ('k') | media/media_options.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/README.md
diff --git a/headless/README.md b/headless/README.md
index 54e9d0ed591971948da16b0d0b2c643d7bb5c834..0748cfd8f6a330771a40315d26096ecb32ea06ec 100644
--- a/headless/README.md
+++ b/headless/README.md
@@ -8,32 +8,32 @@ modern web platform features provided by Chromium and Blink.
## Headless shell
The headless shell is a sample application which demonstrates the use of the
-headless API. To run it, first open the build configuration editor:
+headless API. To run it, first initialize a headless build configuration:
```
-$ gn args out/Release
+$ mkdir -p out/Debug
+$ echo 'import("//build/args/headless.gn")' > out/Debug/args.gn
+$ gn gen out/Debug
```
-and enable headless mode with `is_headless = true`.
-
Then build the shell:
```
-$ ninja -C out/Release headless_shell
+$ ninja -C out/Debug headless_shell
```
After the build completes, the headless shell can be run with the following
command:
```
-$ out/Release/headless_shell https://www.google.com
+$ out/Debug/headless_shell https://www.google.com
```
To attach a [DevTools](https://developer.chrome.com/devtools) debugger to the
shell, start it with an argument specifying the debugging port:
```
-$ out/Release/headless_shell --remote-debugging-port=9222 https://youtube.com
+$ out/Debug/headless_shell --remote-debugging-port=9222 https://youtube.com
```
Then navigate to `http://127.0.0.1:9222` with your browser.
« no previous file with comments | « build/config/ui.gni ('k') | media/media_options.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698