Download the PHP package google/cloud-debugger without Composer

On this page you can find all versions of the php package google/cloud-debugger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
google/cloud-debugger
Rate from 1 - 5
Rated 1.02 based on 42 reviews

Informations about the package cloud-debugger

Google PHP Stackdriver Debugger

Idiomatic PHP client for Stackdriver Debugger.

Latest Stable Version Packagist

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.

A feature of Google Cloud Platform that lets you inspect the state of an application, at any code location, without stopping or slowing down the running app. Stackdriver Debugger makes it easier to view the application state without adding logging statements.

Installation

  1. Install the PHP extension from PECL.

    On Windows, you can download pre-built .dll files from PECL.

    You may also need to enable the extension in your php.ini file:

  2. Install with composer or add to your composer.json.

  3. Run the batch daemon script in the background.

    On Unix-based systems that have semaphore extensions installed, run the BatchDaemon:

    On Windows or systems that do not have semaphore extensions installed, run the Debugger Daemon:

    The SOURCE_ROOT is the base location of your deployed application.

    Alternatively, you can provide a configuration script:

  4. Include and start the debugger Agent as the first action in your application:

    If this file is not in your source root, you will need to provide the path to your application's source root as an optional parameter:

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide.

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.

Sample

Configuration

Snapshots

Debugger snapshots allow you to capture and inspect the call stack and local variables in your application without stopping or slowing it down. In general, you will set breakpoints via the Stackdriver Debugger UI in the Cloud Platform Console.

See Using Debug Snapshots for more information on snapshots.

Logpoints

Debugger logpoints allow you to inject logging into running services without restarting or interfering with the normal function of the service. This can be useful for debugging production issues without having to add log statements and redeploy.

By default, we will send all log messages to Stackdriver Logging, but you can customize this by providing any PSR-3 compatible logger. For example, to use monolog:

See Using Debug Logpoints for more information on logpoints.

Debugging

Please see our Debugging guide for more information about the debugging tools.

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority.

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

All versions of cloud-debugger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
google/cloud-core Version ^1.57
google/cloud-logging Version ^1.29.3
google/gax Version ^1.36.0
google/cloud-common-protos Version ~0.5
psr/log Version ^2.0||^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package google/cloud-debugger contains the following files

Loading the files please wait ....