Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE fastdebug communication issues. #9

Open
betrixed opened this issue May 25, 2023 · 1 comment
Open

IDE fastdebug communication issues. #9

betrixed opened this issue May 25, 2023 · 1 comment
Labels
more info needed More info is needed to investigate this issue

Comments

@betrixed
Copy link

CLI test
Context: Netbeans stepping through a a CLI script with netbeans.

Stepping worked as expected until a fatal error.
After a PHP Fatal error eg "Class not found" the debug process continues but cannot be terminated from netbeans IDE.

Netbeans IDE has to be closed and restarted in order to try again.

Debian arm64 (Parallels VM) on mac OS host.
APT package php 8.1.18 non-zts install from deb.sury.org

FPM test
Run php-fpm test - From netbeans IDE - New Browser tab is triggered. No GUI halt at first statement breakpoint.
However after clicking on "run" button, Output - PHP Debugger Console outputs page html to completion. However browser window continues to wait. On stopping debug from IDE, browser displays blank window.

Debugger Console output -
Set-Cookie: FASTDEBUG_SESSION=nb1; path=/; SameSite=Lax

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate

Pragma: no-cache

Content-Type: text/html; charset=UTF-8

// .... etc ... etc

These behaviours did not occur after switching back to xdebug.

@carlos-granados
Copy link
Contributor

@betrixed thanks for the report. Can I please ask you to generate a debugging log? To do this, add this to the .ini file where you activate fastDebug:

fastdebug.log=/tmp/fastdebug.log
fastdebug.log_level=20

(the first line is the absolute path to a file where the log will be saved, a file in /tmp is usually fine but change it to something else if somehow this location does not work for you)
Then proceed to run your code with the PHP crash while connected to the debugger. Then please email this log to [email protected]
Thanks!

@carlos-granados carlos-granados added the more info needed More info is needed to investigate this issue label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info needed More info is needed to investigate this issue
Projects
None yet
Development

No branches or pull requests

2 participants