Commit graph

1,053 commits

Author SHA1 Message Date
Ben Jackson
af57d2dbdb Print server capabilities in a readable way 2021-03-05 21:19:37 +00:00
Ben Jackson
c2353b388d WIP: Data breakpoints (though can't find a server which supports them) 2021-03-05 21:10:08 +00:00
Ben Jackson
32360236ff Allow forcing selection from the menu with <leader>F5 2021-03-05 21:09:39 +00:00
Ben Jackson
f4831657b8 Use popup for confirmations (note these have to be async) 2021-03-05 19:11:28 +00:00
Ben Jackson
f92f2c5d93 Print hotcodereplace messages 2021-03-05 19:11:28 +00:00
Ben Jackson
cb0fdc7613 Add a way to have adapter specific message handlers 2021-03-05 19:11:28 +00:00
Ben Jackson
943ae6c7c9 Fix error when nothing to expand 625411291 2021-03-05 19:05:42 +00:00
Ben Jackson
82db32780b Add example of ssh to remote host 621140033 2021-03-04 13:28:04 +00:00
mergify[bot]
4cb4b814a1
Merge pull request #366 from puremourning/fix-stop 613865461
Fix crash using Stop function
2021-03-02 11:28:07 +00:00
Ben Jackson
d2b92b7ce5 Fix crash using STop function 2021-03-02 11:12:01 +00:00
Ben Jackson
5bd83d3e37 Add debugging instruction 606299429 2021-02-27 21:02:21 +00:00
mergify[bot]
f6517892c1
Merge pull request #357 from puremourning/set-variable-value
Set variable value
2021-02-25 22:39:45 +00:00
Ben Jackson
edcb057ead Add <leader><CR> to docs 2021-02-25 22:23:30 +00:00
Ben Jackson
06f9bfc057 Add basic tests for set variable value 2021-02-25 22:15:09 +00:00
Ben Jackson
804b499286 Allow setting the value via the api 2021-02-25 22:15:09 +00:00
Ben Jackson
49a9a4b367 Allow mappings which aren't special chars 2021-02-25 22:15:09 +00:00
Ben Jackson
f2d407256e Use expression completion for watch and set 2021-02-25 22:15:09 +00:00
Ben Jackson
94242fa532 CustomUI: Make buffers non-modifiable when opened for debugging 2021-02-25 22:15:09 +00:00
Ben Jackson
ba83a59e88 TEst overriding the mappings 2021-02-25 22:15:09 +00:00
Ben Jackson
675a68c601 Make it work in neovim too 2021-02-25 22:15:09 +00:00
Ben Jackson
e1078375fe Also allow <leader><CR> in case modifyOtherKeys mode doesn't work 2021-02-25 22:15:09 +00:00
Ben Jackson
26452289a8 Allow overriding the variables/stack trace mappings in config 2021-02-25 22:15:09 +00:00
Ben Jackson
ec9122284e Add some notes on setting values to the readme 2021-02-25 22:15:09 +00:00
Ben Jackson
131cfcdd33 Don't try and set a value if not supported 2021-02-25 22:15:09 +00:00
Ben Jackson
c2082cffae Support setting from the balloon 2021-02-25 22:15:09 +00:00
Ben Jackson
9e1a1ab4b5 Report failures 2021-02-25 22:15:09 +00:00
Ben Jackson
32f9a6ec43 Use silent for winbar menus 2021-02-25 22:15:09 +00:00
Ben Jackson
d8d6eb2286 Add ability to set a variable value
This works only for things which have known variablesReference, so
particularly currently only for scopes and theoretically for members.

I think this can work for watches too. will need to check.
2021-02-25 22:15:09 +00:00
mergify[bot]
1d38b8198f
Merge pull request #362 from puremourning/expr-completions-startup 600905010
Delay launching the python interpreter until needed
2021-02-25 22:14:59 +00:00
Ben Jackson
f40ac5db23 Delay launching the python interpreter until needed 2021-02-25 21:24:40 +00:00
Jake Zimmerman
11edcddd9c
Fix using double-quotes in VimspectorEval 599203056
The VimspectorEval command used `-bar` but this prevented the use of double quotes. This seems much more useful than a vim comment in this scenario, so remove the `-bar`.

This is _techncially_ breaking change, but I don't think it's likely anyone will be relying on doing `VimspectorEval x | something else`. If they are, sorry.
2021-02-25 11:04:12 +00:00
mergify[bot]
f9c5a33301
Merge pull request #355 from puremourning/terminate-debugee 596999025
Ask the user about terminating the debuggee
2021-02-24 18:27:16 +00:00
mergify[bot]
fdfa8b265b
Merge branch 'master' into terminate-debugee 2021-02-24 18:14:04 +00:00
mergify[bot]
a8651e257b
Merge pull request #356 from puremourning/telemetry-hide 596952857
hide the pointless telemetry data;
2021-02-24 18:09:48 +00:00
Ben Jackson
d8eb6a0463 Only prompt in 'interactive' contexts to avoid annoying questions 2021-02-24 18:00:08 +00:00
Ben Jackson
09efcf5e50 hide the controvertial telemetry data; it's not like anyone will ever look at it 2021-02-24 16:49:56 +00:00
Ben Jackson
5201995279 Ask the user about terminating the debuggee
CodeLLDB seems to actually support the terminateDebugee flag, so rather
than just forcefully killing things, ask the user if they want to.
2021-02-24 16:49:03 +00:00
mergify[bot]
fd03e074f3
Merge pull request #354 from YgorSouza/fix-readme-typos 593724191
Fix typos in README
2021-02-23 19:57:14 +00:00
Ygor Oliveira
fd0c6e7675 Fix typos in README 2021-02-23 19:51:52 +01:00
Ben Jackson
6fac220ee5 Disable mappings in the popup to ensure navigaion works 592114842 2021-02-23 09:42:57 +00:00
Ben Jackson
0810d7154c Fix syntax occasionally not working in popup, and custom vimrc crashing in neovim 592013661 2021-02-23 09:03:45 +00:00
Ben Jackson
476300f815 Fix errors resetting in neovim 589330315 2021-02-22 13:39:58 +00:00
mergify[bot]
95b900a0a7
Merge pull request #352 from puremourning/fix-restart-socket
Fix restart when using CodeLLDB
2021-02-22 12:29:37 +00:00
Ben Jackson
0e0cc6d4ae Fix restart when using CodeLLDB
Fix restarts always getting stuck "Initializing" when using CodeLLDB.

When using the restart command we re-use the configuration dict as-is,
so always re-use the same TCP port for the lldb socket. Originally it
was thought this was due to a race condition, having the port still
open, but it's not.

When doing a restart, or reset, we shut down the server after we get the
response to the disconnect message. CodeLLDB then also sends a
'terminated' message.

Previously we were forcefully closing the socket before killing the app,
after we get the 'disconnect' response. This meant that the OS buffer
for the socket to localhost:<the port> still contained the terminated
message at the point that we force-closed the socket and killed the
server.

The result was that the firt messages read from the "new" socket to
locahost:<port> were the last messagse written by the previous process,
trikcing vimspector into thinking that the server terminated the process
(before responding to the initialize request).

ANyway, the solution is to ensure that we read all messages from the
previous instance before considering it done. This is done by killing
the server if there is one *first* and then trying to read any messages
from the socket until it closes (reads EOF).

The tricky part is for when we didn't start the server (i.e. in a
multi-session setup). Here we simply _have_ to close the socket because
we can't know when we've received all of the messages, and we shouldn't
expect to receive any 'terminated' events after 'disconnect'.
2021-02-22 12:09:01 +00:00
mergify[bot]
c33fddd150
Merge pull request #351 from puremourning/doautocmd-frame-set 587276919
Add User autocommands when jumping to frame and resetting
2021-02-21 21:47:03 +00:00
Ben Jackson
448ee33a6a prevent annoying 'no matching autocmds' message 2021-02-21 21:24:02 +00:00
Ben Jackson
ae289a88c7 Update readme with example 2021-02-21 21:16:54 +00:00
Ben Jackson
3c7311e33a Test that the commands are fired when stepping through and continuing 2021-02-21 20:49:56 +00:00
Ben Jackson
d561c4aea5 Add demo of new commands for local mappings 2021-02-21 19:17:09 +00:00
przepompownia
3c54cd268f Send VimspectorDebugEnded event 2021-02-21 19:17:09 +00:00