Skip to main content
52 votes
Accepted

Uncaught Error: Call to undefined function xdebug_disable()

vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php From :- if (!(bool)$debugMode && extension_loaded('xdebug')) { xdebug_disable(); ...
Himanshu's user avatar
  • 978
30 votes

Magento 2 run a specific Cron without cron:run CLI command?

On option to save in the development time would be to use N98MageRun for Magento 2. This has the wonderful commands sys:cron:list and sys:cron:run. Using these commands you will be able to find the ...
David Manners's user avatar
20 votes
Accepted

Magento 2 run a specific Cron without cron:run CLI command?

Think simple! The Cron class is a "normal" class. We can use a Playground to test our Cron: How can I bootstrap Magento 2 in a test.php script?. The Object Manager will create our Cron Object. And ...
Khoa TruongDinh's user avatar
6 votes

Uncaught Error: Call to undefined function xdebug_disable()

This is a bug in magento2-functional-testing-framework which conflict with xdebug 3, bacause xdebug_disable() was removed in Xdebug 3. The bug was fixed in the magento2-functional-testing-framework ...
Key Shang's user avatar
  • 3,445
6 votes

Magento 2 run a specific Cron without cron:run CLI command?

You can achieve using two files: create folder and class in root of project like: crons/CronprocessApp.php <?php use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Framework\...
Pramod Kharade's user avatar
6 votes

Magento 2 PHPSTORM Xdebug Configuration setup

I have setup Xdebug for PHPSTORM in Linux system these are the steps. Step 1 :- sudo apt-get install php-xdebug Xdebug installation is up to you and after that please insure Xdebug is installed . ...
Manish Goswami's user avatar
5 votes
Accepted

Xdebug PhpStorm: Explain about the step into and step out

This isn't really a Magento-related question but I am happy to answer it. Step Into means that you will follow the code execution into the next function to fire. Step Out is exactly the opposite. ...
Shawn Abramson's user avatar
5 votes

Uncaught Error: Call to undefined function xdebug_disable()

I faced the same issue after updating and upgrading my Ubuntu server. I needed to downgrade xDebug version to fix this issue for Magento 2.4.1 and PHP7.4: sudo pecl install -f xdebug-2.9.8 If you ...
Wasim's user avatar
  • 455
4 votes

How to debug php which is run by cron job only

You could use Magerun. Magerun contains a command through which you can manually trigger a cronjob. use the following command and then select a number for the specific job: Magento 1 n98-magerun....
Mr. Lewis's user avatar
  • 1,951
4 votes

How to debug php which is run by cron job only

Create a new file, for example, test.php and put it in your magento2 pub directory with the following code: <?php require __DIR__ . '/../app/bootstrap.php'; class TestMyClass extends \Magento\...
BioB's user avatar
  • 41
3 votes
Accepted

Magento 2.2.x debug in NetBeans IDE 8.1 via chrome or mozilla

For Chrome to successfully listen, you need to install the "Xdebug helper" this extension for Chrome. Next, do everything like this guy, and you should work https://stackoverflow.com/questions/...
Eugene Kapelko's user avatar
3 votes

What's the best way to debug Magento?

This might not be the best solution, however, its the way I debug stuff on Magento 2. First of all, switch to Developer mode. You can do this via the console: $ php bin/magento deploy:mode:set ...
Max's user avatar
  • 1,854
2 votes

Magento 2 run a specific Cron without cron:run CLI command?

It's very simple and easy to achive.. In Magento root I created PHP script file as below. If you are in magento 2.4.2 or newer version then change require 'app/bootstrap.php'; to require '../app/...
Gohil Rajesh's user avatar
  • 3,060
2 votes

Composer Installation Error

Check here http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-tech.html 7.1.x is not at all supported by magento. If your server is having 7.1.x then you have to downdrage ur PHP ...
Pavan Kumar's user avatar
2 votes

How can I remotely debug Magento 2 using xdebug when I do not have the "generated" files locally?

To help anyone else facing this issue: My solution was to set up an SSH tunnel to allow me to reach the server that houses the Magento files (it's behind an AWS "bastion" server, in a virtual private ...
Eric Seastrand's user avatar
2 votes

How to debug php which is run by cron job only

Here is what I am using: list cron jobs-> magerun sys:cron:list run specific cron job -> sys:cron:run [cron_job_name] I would like to know more about tools to help debugging.
guerinteed_mike's user avatar
2 votes

Magento 2: How to install & configure xdebug (linux +magento+ sublime)

Configure Xdebug for Magento 2 I assumed you have already installed below softwares Ubuntu 18.04 PHP 7.4 Apache/2.4.29 Sublime Text 4 (Build 4113) Magento 2.4.x Xdebug Installation Install xdebug ...
Pandurang Babar's user avatar
2 votes
Accepted

Waiting for incoming connection with ide key 'xxxxx'

Please follow these steps: https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html#integrationWithProduct from the official documentation. Also, as far as I know Xdebug’s default debugging ...
Diana's user avatar
  • 5,280
2 votes

Magento 2.3: InvalidAgumentException: Composer could not find the config file

Ok since commenting is not enabled. I kept digging with no answers. Then I thought I would create the composer.json file in var/composer_home. The contents of said file was: {} Now I am able to ...
user2970583's user avatar
1 vote

How to configure and setup Xdebug in phpstorm for Magento?

You have to follow these steps : Install X debug for the PHP version which you are using by this command : sudo apt install php7.4-xdebug In this file add these lines : zend_extension=/usr/lib/php/...
Rana Zain's user avatar
  • 699
1 vote
Accepted

How to configure and setup Xdebug in phpstorm for Magento?

Follow this step to configure xdebug. 1:Run this command in terminal sudo apt install php7.4-xdebug after that check PHP version by this command and we will configure according to that xdebug ...
Afzel Arshad's user avatar
1 vote

Magento2 Customer login Invalid request received

Invalid Form Key. Please refresh the page This is the error. Magento has a Form Key to tackle spamming issues. It looks like your form Key has expired. Just check the Age of Form Key.
Oscprofessionals's user avatar
1 vote

How to debug Magento 2.3 queue's consumers with Xdebug?

First verify XDebug is enabled for CLI PHP: php -i | grep xdebug Set these environment variables in the (SSH) shell of the Magento instance, you may need to change the port and host: export ...
Jeroen Vermeulen's user avatar
1 vote
Accepted

Magento 1.9 : Xdebug can no longer be used for as xdebug no longer support php 5

You can download older versions of xdebug which are compatible with php 5. You can see and download all the versions released till now here - https://xdebug.org/download.php Just scroll down and ...
Vivek Kumar's user avatar
  • 5,740
1 vote
Accepted

How can I remotely debug Magento 2 using xdebug when I do not have the "generated" files locally?

Short answer is: you can't. Xdebug needs the files to be there. Xdebug runs outside of Magento itself so it won't generate classes/files on your local filesystem. FYI: the 'developer' mode allows ...
Vincent Hornikx's user avatar
1 vote

Magento 2 run a specific Cron without cron:run CLI command?

You can use this module: https://github.com/Ethan3600/magento2-CronjobManager bin/magento cronmanager:killjob - Kill cron jobs by code bin/magento cronmanager:runjob - Run a specific cron job by its ...
FabioPelloso's user avatar
1 vote

Fatal error: Maximum function nesting level of '100' reached

I just set more for xdebug in php.ini file below: xdebug.max_nesting_level=200 It worked ! Here is a more explanation: xdebug.max_nesting_level Type: integer, Default value: 256 Controls the ...
MrTo-Kane's user avatar
  • 3,674

Only top scored, non community-wiki answers of a minimum length are eligible