Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

Google Stackdriver Debugger PHP Sample Application

Description

This simple Slim application demonstrates how to install and run the Stackdriver Debugger Agent for PHP.

Build and Run

  1. Add the Stackdriver Debugger composer package to your composer.json:
    $ composer require google/cloud-debugger:^0.1
  1. Install the composer package:
    $ composer install
  1. Install the PHP extension from PECL:
    $ pecl install stackdriver_debugger-alpha
  1. Run the Stackdriver Debugger daemon:
    $ vendor/bin/google-cloud-debugger .
  1. Run the AsyncBatchDaemon daemon:
    $ vendor/bin/google-cloud-batch daemon
  1. Run the application:
    $ IS_BATCH_DAEMON_RUNNING=true php -S localhost:8000 -t web/
  1. Navigate to the Google Cloud Debugger console and Select Source Code
  2. Set a snapshot or set a logpoint.

See Setting Up Stackdriver Debugger for PHP for more information.

Contributing changes

Licensing

Morty Proxy This is a proxified and sanitized view of the page, visit original site.