cant debug Vlang code #17903
-
i'm trying to debug a vlang code in vscode but my breakpoints in vscode are never being hit. (breakpoints are not working). i have tried to compile the code using: how should i to configure the vscode to debug vlang? my launch.json config:
my vscode version:
my pc:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
To debug comfortably, compile with gcc instead of tcc. tcc doesn't output debug info that the debugger likes. |
Beta Was this translation helpful? Give feedback.
-
Hi, try without the
See https://github.com/vlang/v/blob/master/doc/docs.md#c-backend-binaries-default |
Beta Was this translation helpful? Give feedback.
-
it worked, i thought gcc was being used by default by v, thats why i was using the '-cc tcc' flag. |
Beta Was this translation helpful? Give feedback.
Hi, try without the
-c
flag and use GCC to be sure:-c
tells V not to create special#line
directives in C code, and that's the problem.See https://github.com/vlang/v/blob/master/doc/docs.md#c-backend-binaries-default