8000 Error on copy value as · Issue #1090 · xdebug/vscode-php-debug · GitHub
[go: up one dir, main page]

Skip to content

Error on copy value as #1090

@yannliep

Description

@yannliep

When we try to use the "Copy Value as json_encode" or "Copy Value as var_export" of an array with empty elements the copy doesn't work.

If I try to copy the $table from the code below it works:

$table = [];
for ($i = 0; $i < 99; $i++) {
    $table[$i] = [$i];
}

But if I change the code to the following I get an error:

$table = [];
for ($i = 0; $i < 99; $i++) {
    $table[$i] = [$i];
}
$table[50] = [];

The error in the logs :

<- evaluateResponse
Response {
  seq: 0,
  type: 'response',
  request_seq: 50,
  command: 'evaluate',
  success: false,
  message: 'This property has no children' }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0