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
snize
November 28, 2017
Programming
61
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
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
320
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
2.7k
How I Stole PSI from Android Studio - DroidKaigi2026
worker8
0
130
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
140
AIエージェント時代のコードレビューを設計する
nogu66
6
2.7k
A2UI for Android: Safely Rendering AI-Generated UI with Jetpack Compose - DroidKaigi 2026
itsmedreamwalker
0
140
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
490
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
160
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
330
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
140
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
190
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
120
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
560
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
So, you think you're a good person
axbom
PRO
2
2.2k
Building Applications with DynamoDB
mza
96
7.2k
How to Talk to Developers About Accessibility
jct
2
550
エンジニアに許された特別な時間の終わり
watany
109
250k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.8k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
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