Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Talking with drupal - psyshでの対話型デバッグ
Search
snize
November 28, 2017
Programming
0
35
Talking with drupal - psyshでの対話型デバッグ
2017/11/28
https://dgcircus.connpass.com/event/70607
での発表のスライド
snize
November 28, 2017
Tweet
Share
More Decks by snize
See All by snize
Drupal ParanoiaでDrupalをより安全に
snize
0
85
Other Decks in Programming
See All in Programming
労務ドメインを快適に開発する方法 / How to Comfortably Develop in the Labor Domain
yuki21
1
250
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
390
今インフラ技術をイチから学び直すなら
yuhta28
1
130
Understand the mechanism! Let's do screenshots tests of Compose Previews with various variations / 仕組みから理解する!Composeプレビューを様々なバリエーションでスクリーンショットテストしよう
sumio
3
620
Jakarta EE meets AI
ivargrimstad
0
380
LangChainの現在とv0.3にむけて
os1ma
4
910
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
530
GraphQLの魅力を引き出すAndroidクライアント実装
morux2
3
540
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
1.1k
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
3
470
GoのIteratorに詳しくなってしまう
inatonix
1
200
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
1
48
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Clear Off the Table
cherdarchuk
91
320k
GraphQLの誤解/rethinking-graphql
sonatard
65
9.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.3k
Facilitating Awesome Meetings
lara
49
5.9k
Side Projects
sachag
451
42k
Thoughts on Productivity
jonyablonski
66
4.2k
Scaling GitHub
holman
458
140k
Web development in the modern age
philhawksworth
204
10k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Transcript
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