0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

enebularのデバックのやり方

Posted at

enebularのデバックのやり方について一ついい方法を見つけたので記載していく。
今後見つけ次第追記

デバックする準備前のコード

image.png

インプットに数値を入れて料金判断でどの拠点まで行けるかを判断するコードでした。
最終的にwebhookで他のiPaaSに接続するものでした。

料金判断でどこにも行けないに通ると

{"value1":"行きません","value2":"行けません","value3":"行けません"}

と出力されるようにしていた。
しかし結果は
image.png

失敗。。。

デバック方法①

今後増えるかもしれないので①とする。
失敗からみてテンプレート生成かjson変換でこけていると判断。
このように変更
image.png
調べたいところでデバックを追加。

実行したところ
image.png
テンプレート生成時に余計な「;]が入っていることに気づけた。
「;」削除後、実行ができました。

ブレイクポイント等があるかもしれませんがデバックを入れることでバグ解消につながりました。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?