LoginSignup
0
2

More than 5 years have passed since last update.

Delveで対象プログラムの起動オプションを指定する

Posted at

Go言語のデバッガとしてDelveを使っているのですが、デバッグ対象のプログラムの起動オプション(flagパッケージのやつ)がDelveのオプションとして認識されてうまくいかなかった

dlv debug -f='./file'
Error: unknown shorthand flag: 'f' in -f=./file
Usage:
.
.
.

なんてことはないですが--で解決しました

dlv debug -- -f='./file'
Type 'help' for list of commands.
(dlv)

そういやrakeでも同じようなことしたっけ

reference url

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