skia2/site/dev/tools/debugger.md
pdr c42475cea2 Update markdown to use absolute image paths, fixing broken images
Markdown can be served with or without a trailing slash but when a
trailing slash is present, relative image links were broken.

The following example works as expected:
url: https://skia.org/dev/design/pdftheory
image url: PdfLogicalDocumentStructure.png
resolves to: https://skia.org/dev/design/PdfLogicalDocumentStructure.png

The following example was broken before this patch:
url: https://skia.org/dev/design/pdftheory/
image url: PdfLogicalDocumentStructure.png
resolves to: https://skia.org/dev/design/pdftheory/PdfLogicalDocumentStructure.png

The PdfLogicalDocumentStructure.png file lives in /dev/design/, not
/dev/design/pdftheory/. This patch updates all images in our markdown
files to be served with the full path so a trailing slash no longer
breaks images.

I hit this bug when promoting the new Skia debugger:
https://groups.google.com/a/chromium.org/d/msg/paint-dev/QJ8xpu8dNyA/F4KX2O4ZBwAJ

BUG=skia:5493
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2128013003
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2128013003

Review-Url: https://codereview.chromium.org/2128013003
2016-07-07 14:48:53 -07:00

803 B

Skia Debugger

Introduction

The Skia Debugger is a graphical tool used to step through and analyze the contents of the Skia picture format. The tool is available online at https://debugger.skia.org or can be run locally.

Building and running locally

Begin by following the instructions to download and build Skia, then simply build and run the skiaserve tool:

# Build.
ninja -C out/Release/skiaserve

# Run the debugger locally
out/Release/skiaserve

After running skiaserve, follow the instructions to open the debugger in your local browser. By default the address will be http://127.0.0.1:8888.

Debugger interface