Skip to content

VSCode breakpoints don't work in generated cpp #589

Answered by JohelEGP
mike919192 asked this question in Q&A
Discussion options

You must be logged in to vote

See also modern-cmake/cppfront#93.

I have a similar issue with Clang in QtCreator.
When I start debugging with the option "from main", which doesn't require a breakpoint, I'm taken to the disassembler.
Like I did, maybe you can work around it by compiling the Cpp2 source file by passing the flag -clean-cpp1 to cppfront.
That makes it so errors at Cpp1 time aren't mapped to the Cpp2 source location, so it helps having another build without -clean-cpp1.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JohelEGP
Comment options

@mike919192
Comment options

@JohelEGP
Comment options

@mike919192
Comment options

Answer selected by mike919192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants