Coder Social home page Coder Social logo

wayland-tracer's Introduction

What is wayland-tracer

wayland-tracer is a protocol dumper for Wayland. It can be used to
trace what's on the wire between the compositor and client, which can
be useful for debugging and is superior to WAYLAND_DEBUG in some
aspects. It can dump raw binary data or interpret data to readable
format if XML protocol definitions are provided.

Building wayland-tracer

Building wayland-tracer is quite simple, it doesn't have many
dependencies. Only expat is need for parsing protocol.

    $ git clone https://github.com/dboyan/wayland-tracer.git
    $ cd wayland-tracer
    $ ./autogen.sh --prefix=PREFIX
    $ make
    $ make install

and you have wayland-tracer.

Using wayland-tracer

To use wayland-tracer, you first need to have a running wayland
compositor. The most basic use is:

    $ wayland-tracer -- PROGRAM [ARGS ...]

which launches the program specified and dumps binary data. If you have
XML protocol files and want wayland-tracer to interpret wire data to
readable format, you can use -d parameter to specifiy XML protocol files
(at least wayland core protocol is needed):

    $ wayland-tracer -d wayland.xml [-d more-protocols] \
    >     -- PROGRAM [ARGS ...]

wayland-tracer will interpret the protocol according to xml definition.

For more uses (such as server-mode, output redirecting, etc.), see the
output of `wayland-tracer -h` or `man wayland-tracer`.

wayland-tracer's People

Contributors

dboyan avatar jchv avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.