vim-vdebug/vdebug

vdebug cannot support multiple simultaneous connections for php

Open

#227 opened on Sep 6, 2015

View on GitHub
 (2 comments) (4 reactions) (0 assignees)Python (162 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,297 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

frontend.php :

<?php
$personJson = file_get_contents('http://127.0.0.1:778/backend.php');
$person = json_decode($personJson);

var_dump($person);

backend.php :

<?php
class Person {
    public $Name;
    public $Email;
}

$person = new Person();
$person->Name = "Maarten";
$person->Email = "maarten.balliauw@jetbrains.com";

echo json_encode($person);

set a breakpoint in backend.php, vdebug won't break (Debugging session has ended).

see more details: https://confluence.jetbrains.com/display/PhpStorm/Simultaneous+debugging+sessions+with+PhpStorm#SimultaneousdebuggingsessionswithPhpStorm-1.Ensureadebuggersessionisstartedforchildrequests

Contributor guide