Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Last active May 29, 2026 00:03
Show Gist options
  • Select an option

  • Save GitHub30/6fe199f90d95abe5404a93c62be39922 to your computer and use it in GitHub Desktop.

Select an option

Save GitHub30/6fe199f90d95abe5404a93c62be39922 to your computer and use it in GitHub Desktop.
rm /home/codespace/.php/current/bin/php
hash -r
sudo apt update
sudo apt install php php-xdebug php-mbstring php-sqlite3 php-xml
composer create-project laravel/laravel .
git init
git add . && git commit -m "コミットメッセージ"
php -d xdebug.mode=trace -d xdebug.start_with_request=yes -d xdebug.trace_format=1 -d xdebug.trace_output_name=trace.%t.%p -d xdebug.output_dir=$PWD -S localhost:8000 -t public
@GitHub30

Copy link
Copy Markdown
Author

xdebug.trace_format = 3とxdebug.trace_format = 4はxdebug 3.3以降出ないとxdebug.trace_format = 1になる
https://derickrethans.nl/flamboyant-flamegraphs.html

php --ri xdebug | grep Version
Version => 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment