Is v -g
working yet?
#17779
-
I have a default project generate by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
First, V doesn't create Debug info is there by default. In fact, you have to run the
(the Running As far as I don't know what the command you used is supposed to do, but it wasn't doing it correctly, or you were just looking at the wrong file. |
Beta Was this translation helpful? Give feedback.
First, V doesn't create
a.out
files (unless you tell it to with-o a.out
), so I don't know why you would be looking at that.Debug info is there by default. In fact, you have to run the
strip
command to remove it.(the
not stripped
at the end means there is debug info present)Running
objdump -W hello_world
displays all the debug info (quite a bit of output).As far as
-g
option, all it does is make it so you see V line numbers instead of C line numbers in error messages. You can also use-cg
…