Commit graph

165 commits

Author SHA1 Message Date
Ben Jackson
b6a2e3df9e Delay configurationDone until we have received _responses_ to the breakpoint requests, as go server seems to require this 2019-07-31 19:02:09 +01:00
Ben Jackson
7d498a13be More variable debugging 2019-07-27 11:32:23 +01:00
Ben Jackson
5076c62ed2 Ensure the handler runs by setting it before killing the job. The callback must be being called syncronously if the process terminates immediately 2019-07-27 11:23:54 +01:00
Ben Jackson
0b7915e0d9 More debugging; why is the shutdown handler sometimes not firing 2019-07-27 11:18:32 +01:00
Ben Jackson
c27502668d Remove log spam 2019-07-27 10:57:50 +01:00
Ben Jackson
3edd1589c3 Try and work out why the server exit handler isn't called 2019-07-27 10:57:50 +01:00
Ben Jackson
6f9fe0cd6f Increase timeout and yet more debug logging 2019-07-27 10:57:50 +01:00
Ben Jackson
325d39b64d Improve debugging of flaky tests 2019-07-27 10:57:50 +01:00
Ben Jackson
7813f06dd1 May make the tests less flaky 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
9fc0a16912 Tidy up clearing breakpoints 2019-07-27 10:57:50 +01:00
Ben Jackson
a7f5b46e00 Add some debug to breakpoints 2019-07-27 10:57:50 +01:00
Ben Jackson
942e04ef4d Update the UI when the connection dies 2019-07-27 10:57:50 +01:00
Ben Jackson
2f8a0b0e97 Update gdbserver comment 2019-07-27 10:57:50 +01:00
Ben Jackson
98effd3355 Allow dependent groups of variables in a list 2019-07-26 18:29:05 +01:00
Ben Jackson
59a8d1b578 Implenent most of the vscode variables 2019-07-25 23:13:32 +01:00
Ben Jackson
d8d22b15bc Allow variables to reference other variables in other layers 2019-07-25 23:10:25 +01:00
Ben Jackson
cee10c8187 fix tabpage errors 2019-07-04 00:40:10 +01:00
jpfeiffer16
25f45a7771 Fix typo in event listener method 'OnEvent_capabilities' 2019-06-22 16:29:50 +01:00
jpfeiffer16
01c0f070ff Tolerate buggy servers not supplying mandatory 'expensive' tag
Do not fail variable lookup if an element does not have the 'expensive' key
2019-06-22 16:29:28 +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
de136f5db4 Allow running a command after remote attach
gdbserver has a bug which means that it can't actually attach to running
processes on some versions due to sending signals to the wrong PID (not
the process group leader, or something). The workaround is to manually
send kill -TRAP to the PID in order for the initial break to be
regiseterd.

Doing this manually is painful, so we allow the remote object to run a
command after having successfully initialized the engine, which is about
the time you need to kick the trap/breakpoint.

https://sourceware.org/bugzilla/show_bug.cgi?id=18945
2019-05-01 13:38:25 +01:00
Ben Jackson
b3d05f4672 Fix typo in UI 2019-04-28 14:16:20 +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
ousttrue
62130ad525 fix typo 2019-04-28 06:31:56 +09:00
Ben Jackson
4f31c95aa4 Fix flake8 errors 2019-04-27 14:21:26 +01:00
Ben Jackson
e80c874e3b Toggle the state before handling the message. I think this implies there is some re-entrancy here that i am not handling correctly, but this fixes an issue with vscode-python (for now) 2019-04-02 16:27:37 +01:00
Ben Jackson
67f7402581 Fix flake8 errors 2019-04-02 16:26:52 +01:00
Ben Jackson
88bac786ba Merge branch 'breakpoints-list' into remote-bp 2019-03-30 10:13:26 +00:00
Ben Jackson
cc7af4b1a4 Make sure that single commands still work 2019-03-01 13:26:05 +00:00
Ben Jackson
9e1cd10c99 When restarting, make sure that we have some configuraiton 2019-03-01 13:25:52 +00:00
Ben Jackson
629d6bf612 Allow variables to come from shell commands 2019-03-01 13:25:36 +00:00
Ben Jackson
174923cbc8 Rudimentary support for exception breakpoint options 2019-03-01 13:25:15 +00:00
Ben Jackson
541686712c Use a list comprehension and try and catch some nasites 2019-02-26 15:24:07 +00:00
Ben Jackson
01c0dca3ad Fix signs 2019-02-24 19:41:49 +00:00
Ben Jackson
8528d80510 Fix breakpoints 2019-02-24 19:41:41 +00:00
Ben Jackson
14f6814ff1 Improve gadget installation; add system wide adapter config 2019-02-24 19:41:20 +00:00
Ben Jackson
e216bc291d Respect (some) server capabilities 2019-02-21 16:14:05 +00:00
Ben Jackson
75851e0652 Move the vimscript into vimscript; it's so much easier. Support multiple commands and jobs 2019-02-21 16:12:58 +00:00
Ben Jackson
2cfd5afacb Add first-pass testing framework based on vim's runtest.vim 2019-02-17 19:36:21 +00:00
Ben Jackson
c684fa0cbb Fix balloons in the GUI 2019-02-15 13:19:13 +00:00
Ben Jackson
3092c06cd7 Rudimentary support for listing breakpoints using the quickfix window 2019-02-12 22:41:10 +00:00
Ben Jackson
09850702cf Print a message if we fail to get a PID 2019-02-12 12:34:17 +00:00
Ben Jackson
305309dcb1 WIP: Don't send many outstanding threads requests 2019-02-12 12:33:40 +00:00
Ben Jackson
ba456e863d Replace the log file each time, as this makes debugging easiser 2019-02-12 09:06:13 +00:00
Ben Jackson
215af1316a Fix runInTerminal when the cwd supplied is (heinously) empty 2019-02-12 09:05:47 +00:00
Ben Jackson
0b40c3e04a Sort the list of configs so they appear consistently to the user 2019-02-12 09:05:19 +00:00
Ben Jackson
bb3909c16f Improve output view; use jobs to display logs and remote commands 2019-02-12 09:04:52 +00:00
Ben Jackson
e006b15100 More improvements to startup and closedown stability. Remove some hack code 2019-02-12 09:01:09 +00:00