Giter Club home page Giter Club logo

playground-tools's Introduction

WordPress Playground tools

This repository contains the tools and applications built using WordPress Playground:

If you were looking for the Playground itself, you can find it here: WordPress Playground

Contributing

Playground Tools are in their early days. If the feature you need is missing, you are more than welcome to start a discussion, open an issue, and even propose a Pull Request to implement it.

Getting started

Clone the repo and build the projects:

git clone https://github.com/WordPress/playground-tools
cd playground-tools
npm install
npm run build
# or `npm run dev` to watch for changes

You'll find the built assets in the dist directory. You can make changes, run the VS Code extension or install the interactive code plugin, and test them.

Debug Flags

The following flags are available on the wp-now cli tool to aid in debugging:

  • --inspect - Connect to a Node debugging client.
  • --inspect-brk - Connect to a Node debugging client, break immediately on script execution start.
  • --trace-exit - Prints a stack trace whenever an environment is exited proactively, i.e. invoking process.exit().
  • --trace-uncaught - Print stack traces for uncaught exceptions; usually, the stack trace associated with the creation of an Error is printed, whereas this makes Node.js also print the stack trace associated with throwing the value (which does not need to be an Error instance).
  • --trace-warnings - Print stack traces for process warnings (including deprecations).

Usage:

npx wp-now start [FLAGS]

Connecting to DevTools

When connecting to DevTools with --inspect or --inspect-brk, the NodeJS debug icon should appear in green at the top left of the DevTools window, click on it.

image

You should see the step-debugger open, with the script paused on the first line if --inspect-brk was selected:

image

playground-tools's People

Contributors

adamziel avatar sejas avatar danielbachhuber avatar artemiomorales avatar wojtekn avatar eliot-akira avatar gziolo avatar kozer avatar stevendufresne avatar soean avatar dd32 avatar katinthehatsite avatar t-hamano avatar vcanales avatar seanmorris avatar sc0ttkclark avatar oskosk avatar michalczaplinski avatar mpkelly avatar luisherranz avatar juanmaguitar avatar johnkennyuk avatar eruizdechavez avatar intelrunner avatar ebinnion avatar dmsnell avatar dawidurbanski avatar dcalhoun avatar ahmadawais avatar elchead avatar

Watchers

 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.