Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Talking with drupal - psyshでの対話型デバッグ
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
snize
November 28, 2017
Programming
70
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Talking with drupal - psyshでの対話型デバッグ
2017/11/28
https://dgcircus.connpass.com/event/70607
での発表のスライド
snize
November 28, 2017
Transcript
17 slides
Talking with Drupal psyshでの対話型デバッグ
Tomotsugu Kaneko
[email protected]
@snize
ところで、Drupalのテーマ作成とかモジュール作るときの変数や メソッドの確認、つまりデバッグどうしてますか?
Develモジュール プリントデバッグ(echo, var_dump...) Xdebug REPL 僕は普段はXdebug派です
REPL Read-eval-print loop:読んで評価して表示を繰り返す
今日はPHPのREPL環境のひとつ、 のデモをします PsySH
Drupalの準備
Composerでプロジェクトの作成 必要なファイルのダウンロードと配置を以下のコマンドで行う 詳しくは: composer create-project drupal-composer/drupal-project:8.x-dev demo_dru Using Composer to
manage Drupal site dependencies | Drupal.org
Drupalのインストール Drupal ConsoleでのDBの作成とDrupalの初期設定の書き込み 今日はここまで準備済み drupal site:install
Demo 前提あるいは状況 今日はあまりDrupal 8についての知識がない状態で、テーマ開発 を行う状況にあると思ってください。テーマファイルの mytheme.theme でTwigのに渡す変数を探している。
ダミーのタクソノミータームを生成 drupal consoleで生成(便利!) drupal create:terms tags
PsySH
PsySHとDrushの関係 Drushコアの機能 [^ ] drush/CliCommands.php at 226a7d4020630969ba9d48b3390e841b1ccbe758 · drush- ops/drush
REPL (a custom shell for Drupal) - Drush docs drush help core-cli Open an interactive shell on a Drupal site. Options: --version-history Use command history based on Topics: docs-repl repl.md Aliases: php
PsySHを起動 Drushコマンドから起動、Drushを経由してDrupalをブートストラ ップしてPsySHを起動するからPsySHからDrupalの機能が呼び出 せるようになる よく使うコマンド help , ls -la , show
drush php
デモ中 (おさらい)前提あるいは状況 今日はあまりDrupal 8についての知識がない状態で、テーマ開発 を行う状況にあると思ってください。テーマファイルの mytheme.theme でTwigのに渡す変数を探している。
以上です、ありがとうございました (。・ω・。)ノ このデモのリポジトリ snize/demo_drupal-psysh
過去の発表 コンタクト ← フォローお願いします
[email protected]
CONFIGURATION MANAGEMENT WITH DRUPAL -
Drupalでの構 成管理 @snize
More Decks by snize
See All by snize
Drupal ParanoiaでDrupalをより安全に
snize
0
120
Other Decks in Programming
See All in Programming
どうしても Eloquent でリポジトリパターンをやりたいんだ #phpcon_niigata / phpcon-niigata-2026
shogogg
0
700
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
860
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
450
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
1
1.1k
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
210
Compiling Your Language to WasmGC & Friends
tanishiking
0
780
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
120
Spec-driven Development with AI
simas
PRO
0
2.3k
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
230
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
SODA - FACT BOOK(EN)
sodainc
1
300
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
3
1.6k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
How to make the Groovebox
asonas
2
2.6k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
The Language of Interfaces
destraynor
163
27k
Utilizing Notion as your number one productivity tool
mfonobong
4
710
Into the Great Unknown - MozCon
thekraken
41
2.8k
How to Talk to Developers About Accessibility
jct
2
630
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1.1k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k