[CPP] 如何合适的调试debug?
#301
-
CPP下, |
Beta Was this translation helpful? Give feedback.
Answered by
j178
May 24, 2024
Replies: 2 comments
-
可以设置一下环境变量
这个就是 leetgo 编译 cpp 时候的命令,二进制是放在 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JigaoLuo
-
谢谢 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以设置一下环境变量
DEBUG=1
, 然后运行leetgo test last -L
可以看到这样的输出:这个就是 leetgo 编译 cpp 时候的命令,二进制是放在
C:\Users\jo\AppData\Local\Temp\leetgo\two-sum-cpp.exec
下的,你也可以自己用 gcc/clang 编译,输出到任意指定的位置。