Sourcegraph docs Sourcegraph docs

Sections

  • About
    • Product tour
    • Personalization
  • Code search
    • Tutorials
    • How-to guides
    • Explanations
    • Reference
  • Code navigation
    • How-to guides
    • Explanations
    • Reference
  • Batch Changes
    • Quickstart
    • Explanations
    • Tutorials
    • How-to guides
    • References
  • Code Insights
    • Quickstart
    • Explanations
    • How-to guides
    • References
  • Notebooks
    • Quickstart
  • Code monitoring
    • Quickstart
    • Explanations
    • How-to guides
  • Integrations
    • Browser extension
    • Editors
    • Browser search engine
  • Extensions
  • CLI
    • Quickstart
    • Explanations
    • How-to guides
    • References
  • Adopting
  • Cloud
  • Administration
    • Deploy
    • Upgrade
    • Configuration
    • Code hosts
    • User authentication
    • Extension registry
    • Observability
    • Analytics
    • FAQ
    • Troubleshooting
    • How-to guides
    • Pricing
  • Development
    • Setup
    • How-to guides
    • Background information
    • Contributing
  • Dotcom

  • ★ Get Started
  • ★ Search query syntax
  • ★ Sourcegraph API
  • ★ Changelog

External

  • About Sourcegraph
  • Sourcegraph.com

How to guides

On this page:

  • Documentation
  • New features
  • Implementing Sourcegraph
  • Local Environment
  • Testing Sourcegraph & CI
  • Profiling
  • Executors
  • Windows support
Edit this page
Home / dev / how-to

How to guides

Documentation

  • How to write great docs (watch the video)
  • How to maintain the Tech Radar

New features

  • How to add support for a language
  • Release Browser Extensions
  • How to implement the authentication process for an IDE extension

Implementing Sourcegraph

  • Developing the product documentation
  • Observability
    • How to add observability
    • How to add logging
    • How to find monitoring
    • How to add monitoring
    • How to enable continuous profiling in production
  • GraphQL
    • How to add a GraphQL query

Local Environment

  • Set up local development with Zoekt and Sourcegraph
  • How to debug live code
  • Ignoring editor config files in Git
  • Use golangci-lint

Testing Sourcegraph & CI

  • How to run tests
    • See also Testing Principles and Continuous Integration
  • Configure a test instance of Phabricator and Gitolite
  • How to test changes in dogfood
  • How to use client app PR previews
  • How to receive a Slack notification if a specific CI step failed
  • How to allow a CI step to fail without breaking the build and still receive a notification

Profiling

  • How to do one-off profiling for dogfood and production using pprof

Executors

  • How to deploy a new executor image

Windows support

Running Sourcegraph on Windows is not actively tested, but should be possible within the Windows Subsystem for Linux (WSL). Sourcegraph currently relies on Unix specifics in several places, which makes it currently not possible to run Sourcegraph directly inside Windows without WSL. We are happy to accept contributions here! :)

  • About Sourcegraph
  • Sourcegraph.com
  • Code (GitHub)
  • Terms
  • Security
  • Privacy