apache / apache/netbeans

Allow to run PHP code during an XDEBUG debugging session

Open
#4,280 0 comments 0 reactions 0 assignees View on GitHub
enhancement kind:feature PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

While debugging a PHP project using XDEBUG is not possible to run PHP code in a terminal (or I'm not aware how to do it).

It would be a great help if a PHP terminal is available to run PHP commands in the current context. Currently, is one of the main drawbacks of using NetBeans to debug PHP code.

This is available in other IDE like PHPStorm or Visual Studio Code so it should be feasible.

This issue has been copied from https://issues.apache.org/jira/browse/NETBEANS-5764

### Use case/motivation

While debugging sometimes is very useful to run PHP code on the current context to evaluate expressions or get more information of the current situation. This could potentially speed up the debugging process a lot.

### Related issues

_No response_

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow the Apache Software Foundation's [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html)

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by surveying NetBeans' PHP debugging and XDEBUG integration; done would mean a terminal can evaluate PHP code in the current debugging context, with behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.