Giter Site home page Giter Site logo

kphpdebuggerbuild's Introduction

KPHP Debugger

Installation

  1. Download Eclipse Kepler: 4.3.2 Release
  2. Install PHP Development Tools PDT
  3. From Eclipse menu: Help > Install New Software Work with: http://download.eclipse.org/tools/pdt/updates/3.3

  4. Install Graphviz
  5. Put org.phpsemantics.debug.core ,org.phpsemantics.debug.ui and tools into Eclipse/dropins directory.

Setup

  1. set path of dot in makeGraph(only for Mac)
  2. You need to add the path of dot tool into makeGraph script as following:.
    Change export PATH=$PATH with export PATH="/path/of/dot":$PATH
    You can get path of dot by:which dot

  3. kompile php.k
  4. Under kphp2 directory, run this command: ./../k/bin/kompile/php.k
    This might take a few minutes. When it finishes, you get the php-kompiled folder in kphp2.

Usage

  1. Create a PHP project
  2. File -> New -> Other -> PHP project

  3. Open Debug Perspective
  4. Create new Debug Configuration
  5. Doulbe click on KPHP, specify the script you want to debug

TroubleShooting

Check if the interpreter is working:
run following commands under tools/kphp2 directory:
scripts/kphp example-breakpoint.php
Then you should get output in XML-like notationm (go to KPHP website to know more about output)

Check version of the k tool
run following commands under tools/k/bin:
./krun -version
Then it should say: cd ./krun -version
K-framework nightly build.
Git Revision: eb0a7cb
Build date: Fri May 23 10:49:48 CDT 2014

Check the dot tool
Under tools directory, run following command:
./makeGraph example.dot example.png Then you should get a directed graph.

kphpdebuggerbuild's People

Contributors

tianchenwei avatar

Watchers

 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.