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
50
0
Share
Talking with drupal - psyshでの対話型デバッグ
2017/11/28
https://dgcircus.connpass.com/event/70607
での発表のスライド
snize
November 28, 2017
More Decks by snize
See All by snize
Drupal ParanoiaでDrupalをより安全に
snize
0
110
Other Decks in Programming
See All in Programming
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
3.1k
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
280
AgentCore Optimizationを始めよう!
licux
3
240
要はバランスからの卒業 #yumemi_grow
kajitack
0
160
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
360
From Formal Specification to Property Based Test
ohbarye
0
2.6k
書き換えて学ぶTemporal #fukts
pirosikick
2
380
Programming with a DJ Controller — not vibe coding
m_seki
3
860
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
160
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.9k
実践ハーネスエンジニアリング:ステアリングループを実例から読み解く / Practical Harness Engineering: Understanding Steering Loops Through Real-World Examples
nrslib
5
5.5k
関係性から理解する"同一性"の型用語たち
pvcresin
1
110
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
528
40k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Ruling the World: When Life Gets Gamed
codingconduct
0
230
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
150
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
390
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
140
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