d1553bda9e
Added two simple functions to determine if a debugger is attached, and to provide info about where the debugger is connected from. Also fixed a minor bug in ext_socket where the name for an unbound AF_UNIX socket would come back from getsocketname()/getpeername() as garbage.
12 linhas
210 B
PHP
12 linhas
210 B
PHP
<?hh
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
function main() {
|
|
$attached = hphp_debugger_attached();
|
|
var_dump($attached);
|
|
$info = hphp_get_debugger_info();
|
|
var_dump($info);
|
|
}
|
|
|
|
main();
|