Getting sources: simple

The simple way to get sources is just to clone the Chrome DevTools Frontend mirror.

One downside is that our Github mirror lags behind the actual tip-of-tree (usually, however, no more then a day).

Getting sources: bullet-proof

These is a relatively easy and fast way to get tip-of-tree DevTools sources with the help of git sparse-checkout feature. Here’s how:

1. Create folder and initialize a git repo:

mkdir devtools-frontend && cd devtools-frontend

git init

2. Add chromium remote and initialize sparse checkout:



git config core.sparsecheckout true

echo third_party/WebKit/Source/devtools >> .git/info/sparse-checkout git remote add upstream https://chromium.googlesource.com/chromium/src git config core.sparsecheckout trueecho third_party/WebKit/Source/devtools >> .git/info/sparse-checkout

3. Finally, pull DevTools: