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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
snize
November 28, 2017
Programming
65
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
More Decks by snize
See All by snize
Drupal ParanoiaでDrupalをより安全に
snize
0
120
Other Decks in Programming
See All in Programming
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
180
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
270
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
250
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
210
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
130
AmebaブログはKMPから卒業します
kmars0605
0
300
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
16
8.9k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
390
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
4
1.1k
Next.js: The final boss of Web Performance
guaca
0
360
LLM 101
dalinaum
0
230
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
870
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
390
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The untapped power of vector embeddings
frankvandijk
2
2k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
510
Rails Girls Zürich Keynote
gr2m
96
14k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
320
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
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