Create Magento App
Create ScandiPWA AppScandiPWA DocsGitHub
v2
v2
  • Create Magento App
  • Getting started
    • Getting Started
    • Prerequisites
      • Linux requirements
      • MacOS requirements
        • Apple Silicon
      • Windows requirements
    • Available commands
      • Start the application
      • Stop the application
      • Check application status
      • Enter application CLI
      • Explore application logs
      • Execute commands in Docker containers
      • Link a theme
      • Import database dump
      • ⚠️ Uninstall a project
    • Folder structure
    • Updating to New Releases
      • Testing Alpha Releases
    • Configuration File
      • System Configuration File
    • Supported Magento versions
    • How does it work?
    • Limitations
    • What Is New in Version 2
  • Usage guide
    • Using console commands
    • Accessing Docker containers
    • Linking a Scandi Theme
    • Enabling XDebug
    • Enabling SSL
    • Configuring PHP
    • Configuring Multi-Store
    • Configuring NewRelic
    • Access on the local network
    • Using custom domain
    • Using Enterprise Edition
    • Using OpenSearch
    • Importing database
      • Importing remote database
    • Converting legacy Docker setup to CMA
    • Improve Performance
  • Container images
    • PHP Images
      • PHP 8.4
      • PHP 8.3
      • PHP 8.2
      • PHP 8.1
      • PHP 7.4
      • PHP 7.3
      • PHP 7.2
    • ElasticSearch Images
      • ElasticSearch 6.8
  • Scripts Extensions
    • PHP Extensions
      • PHP Extensions Package
      • (deprecated) ionCube Extension
  • Troubleshooting
    • Common Issues
    • CMA Debugging
    • Uninstall CMA
Powered by GitBook
On this page
  • Debugging preparations
  • The browser
  • The editor
  • Debugging
  • First step: Run Create Magento App
  • Second step: Start the debugger

Was this helpful?

  1. Usage guide

Enabling XDebug

On this page you will be guided on activating XDebug PHP debugger in Create Magento App application.

PreviousLinking a Scandi ThemeNextEnabling SSL

Last updated 1 day ago

Was this helpful?

Debugging preparations

The browser

You need to install for to activate the Debugging session in PHPStorm. Instructions are the same for .

After installation, open extension options and select Debug Trigger value as PHPStorm.

This extension sets a cookie in your browser's requests: XDEBUG_SESSION=PHPSTORM. This cookie enables debugging in your browser.

Sometimes, you may want to enable debugging outside of the browser (for example, to debug individual GraphQL requests). You can also set XDEBUG_SESSION=PHPSTORM manually in the Cookie header. Most HTTP and GraphQL clients support this option.

Now, when you open your CMA webpage, you need to enable a debug session by pressing Debug in the extensions menu.

The editor

Debugging

First step: Run Create Magento App

yarn start # for Yarn
npm run start  # for NPM

Wait for the command to finish.

Second step: Start the debugger

Choose the create-magento-app debug configuration in the top right corner of PHPStorm's window.

Click on Start debugging or press Shift+F9, put test breakpoint in $project_root/pub/index.php file, reload the page and that is all!

Happy debugging!

Open debugging tab in VSCode (Ctrl + Shift + D) and select Listen for Xdebug configuration.

Click on Start debugging (or press F5), put the test breakpoint in $project_root/pub/index.php file, reload the page and that is all!

Happy debugging!

. This needs to be done once.

Install extension.

Use command.

Go to settings and activate Docker connection
PHP Debug
start
XDebug Helper by JetBrains extension
Chrome
Firefox
Install extension
Set Debug Trigger value to PHPSTORM