vimspector
vimspector copied to clipboard
fixing unescaped double quotes
Problem arises from unescaped " during evaluation e.g. "some text" in c++.
I kind of knew about this, but forgot to fix. Sorry...
Anyway, here is the fix and the test, too.
Fixes #460
For some unknown (to me) reason, execution pauses on enter instead of at the breakpoint. Only happens when
char arr[] = "abc";is added to the main.... To make things even stranger, this is exclusive tog++. I triedclang++with exactly the same commandclang++ -g -std=c++17 -Wall -Wpedantic simple.cpp -lpthread -o simpleand it works as expected!!! So I blame this on g++.Reviewable status: 0 of 3 files reviewed, all discussions resolved
doubly weird if it fails in macOS too as that uses clang
doubly weird if it fails in macOS too as that uses clang
But that's apple clang, is it not? They need not be 1:1
there's very little materially differnent
my guess with the tests is that inserting the lines threw off the offsets in the tests and now it's trying to add breakpoints to lines which aren't valid and so the debugger is moving them.
It does not appear to be the case, since I tried a standalone vimspector session and am able to reproduce the problem. Anyway, I switched to a different source file to avoid investigating the problem further :D
I guess this is abandoned for now. We can revisit later if we have the energy.