yasd
yasd copied to clipboard
Yasd hits breakpoint and then just blocks. Hitting continue (F5) in VS Code does not continue the execution.
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provides a simple script and debug step to reproduce the problem.
Here is my sample script:
$http = new Swoole\HTTP\Server("0.0.0.0", 9501);
$http->on('start', function ($server) {
echo "Swoole http server is started at http://127.0.0.1:9501\n";
});
$http->on('request', function ($request, $response) {
$response->header("Content-Type", "text/plain");
$response->end("Hello World\n");
});
- What did you expect to see?
I expect that when I hit Continue or F5 the debugger should continue execution.
- What did you see instead?
The debugger does not continue. The execution is still paused.
- What is your machine environment used (show your
uname -a&php -v&gcc -v) ?
# uname -a
Linux 0e3189c0aeda 4.9.184-linuxkit #1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 GNU/Linux
# php -v
PHP 8.0.3 (cli) (built: Apr 10 2021 13:10:41) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
with Yasd v0.3.7, Our Copyright, by codinghuang
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)
You can open the following configuration:
yasd.log_level=0
Then try your operation again. Finally, a file 'debug.log' will be generated. Send this file to me at [email protected].
Can consider to use swoole https://github.com/swoole/swoole-src/tree/support-xdebug
You can use xdebug directly, as long as the PHP version is 8.1 or greater