douzhaxian1267 2019-03-29 10:13
浏览 244

使用Delve GO Debugger传递二进制命令行参数

I have a GO binary app running inside a Docker container. I have the following command to execute the binary and pass the command line argument -env-file=dev.env.list.

CMD ["/dlv", "--listen=:3500", "--headless=true", "--api-version=2", "exec", "/app", "--", "-env-file=dev.env.list"]

I can debug GO binary app but I'm not able to get the command line argument. The documentation for Exec does not mention about command line arguments.

How can I pass command line parameters to the binary app using Delve GO Debugger?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 对于知识的学以致用的解释
    • ¥50 三种调度算法报错 有实例
    • ¥15 关于#python#的问题,请各位专家解答!
    • ¥200 询问:python实现大地主题正反算的程序设计,有偿
    • ¥15 smptlib使用465端口发送邮件失败
    • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
    • ¥15 对于squad数据集的基于bert模型的微调
    • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
    • ¥20 steam下载游戏占用内存
    • ¥15 CST保存项目时失败