LoginSignup
4
2

More than 3 years have passed since last update.

IntelliJ (or WebStorm) + Vue.js + TypeScriptで書いたコードのデバッグをする

Posted at

console.log() での出力がつらくなって来たのでメモ。下記のようにするとブレークポイントで実行が止まります。

  1. yarn run serve --debug もしくは直接 vue-cli-service serve --debug などでデバッグモードでVueアプリをサーブ
  2. (IntelliJでブレークポイントをはっておく)
  3. IntelliJの Run > Debug... > Edit Configurations... でデバッグ実行の設定画面を開く
  4. 左上の +ボタン > JavaScript Debug を選ぶ
  5. URLの欄に http://localhost:8080/#/... などVueアプリのURL(デバッグしたいもの)を入力
  6. Debugボタン(右下の)を押す
4
2
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
4
2