Commit graph

36 commits

Author SHA1 Message Date
Ben Jackson
5754e96067 FixUp: Change of mapleader 2021-02-21 18:24:26 +00:00
Ben Jackson
5ab92a7e67 Breakpont tests too flaky 2020-11-22 14:54:02 +00:00
Ben Jackson
7d5ad3ffa1 Another flaky test 2020-11-22 14:13:15 +00:00
Ben Jackson
80985148e7 Add "run to cursor" support
We add a 'temporary' option to line breakpionts and try and clear any
temporary breakpionts on the line we end up stopping on. This might not
be art, but _probably_ works in almost all cases that matter.

it's a bit hacky the way we have to push the reason around, but we don't
know where we stopped until we actually get the stack trace response and
SetCurrentFrame

Move temporary breakpionts to match server response

Also delete any existing ones when adding a new one and add tests for
run-to-cursor.

Only continue after we successfully set the breakpoints. This makes it
work in go
2020-10-23 22:53:04 +01:00
Ben Jackson
bd09206caf While debugging, use the correct path for breakpoints 2020-09-27 22:47:22 +01:00
Ben Jackson
2ad1a3e502 Display a different sign when there's a breakpoint on the PC line
Vim only renders a single sign-per-line. If we have the PC _and_ a
breakpoint, we should make that clear. Do this using a vimspectorPCBP
sign which combines both vimspectorPC and vimspectorBP (sort of).

We can't (unfortuantely) render the breakpoint blob in a different
colour, but it's at least obvious when we toggle on the PC line.
2020-09-19 15:18:05 +01:00
Ben Jackson
26277cefbd Another flaky test 2020-09-19 11:36:28 +01:00
Ben Jackson
b22d8e570e Try to determine what is flaking the tests; make sure to reset the priorities 2020-09-01 17:06:52 +01:00
Ben Jackson
dffd65f241 Use CursorLine highlihgt to highlight current PC line 2020-09-01 16:31:25 +01:00
Ben Jackson
c1b544fb3c Allow customisation of the signs
Too many plugins use the default priority of 10 so they race/chase.
Allow uses to configure the priorities and make sure that the defaults
are documented.
2020-09-01 13:56:12 +01:00
Ben Jackson
50b8b0103c Fix sequence of scopes/vars to match the server 2020-07-08 16:13:15 +01:00
Ben Jackson
5f11fe4e6e Fix up vint errors 2020-05-19 20:27:28 +01:00
Ben Jackson
8c4112cd1f breakpoints list: fix listing while debugging
Also, open the quickfix list when listing breakpoints, and add a test
2020-05-17 21:40:51 +01:00
Ben Jackson
abd8ba7d38 Stabilise some tests 2020-05-08 11:50:38 +01:00
Ben Jackson
77dc400077 test and doc updates for conditional breakpoints
use a better description of hit condition and describe the options dict.
2020-04-26 13:04:51 +01:00
Ben Jackson
8052484cc7 Use YCM python style 2020-02-08 21:15:27 +00:00
Ben Jackson
7d046574cb Add tests for toggling breakpoint and inserting line 2019-12-14 18:03:34 +00:00
Ben Jackson
7813f06dd1 May make the tests less flaky 2019-07-27 10:57:50 +01:00
Ben Jackson
4d484868f3 Wait for sign to be displayed 2019-07-27 10:57:50 +01:00
Ben Jackson
1e54e457d4 Finally fix breakpoint bugs 2019-07-27 10:57:50 +01:00
Ben Jackson
e6904acddd Fix some asserts 2019-07-27 10:57:50 +01:00
Ben Jackson
9ea25da1a8 Use setpos as it is clearer 2019-07-27 10:57:50 +01:00
Ben Jackson
34df47fe35 Make reset reliable by waiting for it to finish 2019-07-27 10:57:50 +01:00
Ben Jackson
264cd1ada7 More tests 2019-07-27 10:57:50 +01:00
Ben Jackson
9fcfa13cc1 Common setup/cleardown 2019-07-27 10:57:50 +01:00
Ben Jackson
14abf30518 Factor out some common functions in breakpoint tests 2019-07-27 10:57:50 +01:00
Ben Jackson
55c75fd08e Refactor test framework into a vim plugin. 2019-07-27 10:57:50 +01:00
Ben Jackson
3a70b3dd2c Make debugging actually work on linux by installing gdb. Also, add a manual image for testing the tests 2019-06-08 10:49:26 +01:00
Ben Jackson
4f75f11554 Increase timeout 2019-06-08 10:49:26 +01:00
Ben Jackson
d458d06bc5 Use the same version as the current macvim 2019-06-08 10:49:26 +01:00
Ben Jackson
132b284dcd Improve tests 2019-05-16 21:08:18 +01:00
Ben Jackson
13f92e7d9b Update tests so they actually test and pass 2019-05-16 21:05:50 +01:00
Ben Jackson
f6e4b6cc5d Read tests from command line and print test file name on failure 2019-05-16 21:05:50 +01:00
Ben Jackson
470c64603a Add ClearBreakpoints API
Add a test which actually triggers the mappings and fires up vimspector
with the cpptools debugger.
2019-04-28 10:51:15 +01:00
Ben Jackson
14f6814ff1 Improve gadget installation; add system wide adapter config 2019-02-24 19:41:20 +00:00
Ben Jackson
2cfd5afacb Add first-pass testing framework based on vim's runtest.vim 2019-02-17 19:36:21 +00:00