3
0

More than 5 years have passed since last update.

pugの変数なんかをコンソールに表示して、デバッグする方法

Posted at

sassの@debug的なことをpugでやりたかった時に、ちょっと迷ったので、メモ

pugでは変数やeach文などが色々と使えて便利だが、
複雑なものを書いていくとエラーが起こった時、なんでエラー…?
ってなることがある。
そんな時、
- var test = "hoge"
- console.log(test)
的な感じでやると
コンソールに
hoge
と出る。

まぁJSでコンパイルされているので、当たり前なんだけど…

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0