View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001645 | Xdebug | Step Debugging | public | 2019-03-05 12:54 | 2021-04-14 16:07 |
| Reporter | dv-ds | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 2.7.0RC2 | ||||
| Summary | 0001645: Variable not set / present in locals when hitting deprecation warning | ||||
| Description | As each() is deprecated in 7.2+, the following code generates a deprecation warning. This may or may not be the cause of the issue here, which is that evaluating the function argument is not possible without using the console. Function locals seem to be affected in the same way. When this happens, assuming the debugger is made to stop as soon as this deprecation warning is generated, it is not possible to evaluate $arg in a normal way:
| ||||
| Steps To Reproduce | <?php $x = [1, 2, 3]; function foobar($arg) { foobar($x); // Set IDE to break on "everything", so that the deprecation warning is caught. | ||||
| Additional Information | Setup:
| ||||
| Tags | No tags attached. | ||||
| Operating System | macOS | ||||
| PHP Version | 7.3.0-7.3.1 | ||||
|
|
As I can't run VS Code locally, would you mind attaching a remote debugging log as you did in 0001644? |
|
|
Sure thing, here you go. |
|
|
Oops, wrong log, sorry. Here goes. |
|
|
Is this issue still relevant to you? |
|
|
Closing this, as it is missing requested feedback. |