View Issue Details

IDProjectCategoryView StatusLast Update
0001946XdebugStep Debuggingpublic2021-02-18 11:48
Reportermarioaprea Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.9.8 
Summary0001946: Cannot debug when I launch pho command from terminal cli
Description

I had a project with symfony and I need to debug command from command line like this:

Php app/console oro:cron:ben:xxx:catalog-update

I use visual studio code with xdebug.

If I run application from browser the debug stops on breakpoints, but if I launch a command
from cli the command was executed ignoring the breakpoint inside pages.

I use php 7.1.33, Zend engine 3.1.0, Zend OPCache 7.1.33 Ubuntu 20.10.1

My launch.json is configured with listen for xdebug on port 9000

Steps To Reproduce

Launch command from terminal

Php app/console oro:cron:ben:xxx:catalog-update

Inside project folder

Tagscli, debug, php, visual-studio-code
Operating SystemUbuntu 20.10.1
PHP Version7.1-dev

Activities

derick

2021-02-18 11:48

administrator   ~0005675

This works for many people, so unless you can demonstrate this is a bug, I am going to believe that this is a configuration issue on your side.

Please reach out through https://stackoverflow.com/questions/tagged/xdebug for support.

Issue History

Date Modified Username Field Change
2021-02-17 08:34 marioaprea New Issue
2021-02-17 08:34 marioaprea Tag Attached: cli
2021-02-17 08:34 marioaprea Tag Attached: debug
2021-02-17 08:34 marioaprea Tag Attached: php
2021-02-17 08:34 marioaprea Tag Attached: visual-studio-code
2021-02-18 11:48 derick Assigned To => derick
2021-02-18 11:48 derick Status new => resolved
2021-02-18 11:48 derick Resolution open => no change required
2021-02-18 11:48 derick Note Added: 0005675