Commit graph

907 commits

Author SHA1 Message Date
Ben Jackson
7e55563c8f FixUp: make sure that we copy templates rather than end up updating them 2020-12-31 21:43:24 +00:00
Ben Jackson
2fa6142c8f FixUp: save config 2020-12-31 20:55:35 +00:00
Ben Jackson
6126ac1724 none terminal doesn't work in CodeLLDB 2020-12-31 20:37:43 +00:00
Ben Jackson
7a02f6139f Same generated configurations on reset 2020-12-31 20:33:42 +00:00
Ben Jackson
acd0f31573 WIP: Guided config for c++
This adds some templates to the gadget config, organised by "category"
(human-readable) and presented in a menu. The configuration thus created
is just run normally through the variable replacements.

Also:
- Fix default value replacements which come from the calculus
- Add default-value _lists_. This uses select-from-list UI. Useful for
  enumerated values. Allow specifying a default.
2020-12-31 19:50:34 +00:00
Ben Jackson
b6048fc5c6 Refactor launch to split out the various parts 2020-12-31 19:06:43 +00:00
mergify[bot]
41a98026fa
Merge pull request #327 from AW3i/master 439938086
Fix Typo in PHP section
2020-12-23 09:19:49 +00:00
Alex Weigl
523ea29faa
Fix Typo in PHP section 2020-12-22 23:49:25 +02:00
mergify[bot]
d0fc7815b3
Merge pull request #319 from puremourning/docker-test 438405053
Fix docker example
2020-12-22 16:04:25 +00:00
Ben Jackson
0942aa4523 Fix docker example for python
The example was was using 'launchCommand' which is not valid according
to the schema; it should be 'runCommand'.

But also, it never really worked. Vimspector would start the "adapter"
(in this case, try and connect to the TCP port) before running the
"prepare" commands, wich in this case would actually start debugpy
listening. So to solve that we run the prepare commands earlier.
Hopefully this won't cause a regression for Java and C++ remote attach,
which we don't really have tests for.

Finally, due to the way docker works, when you forward a port and
nothing is listening on it, docker _accepts_ the connection then
immediately drops it. This is _super_ annoying meaning that it looks to
vimspector liek the server instantly dies if it takes nonzero time for
the remote commands to open the port. So to solve this we add loaunch
and attach delays which can be configured in the adapter config. This
actually solves a prolem where the java debugger just takes agest to
attach on remote launch too.

(Finally, finally...) updated the vimspector schema to represent
the real launch/attach remote configuration, which was incorrectly
spec'd at the adapter level, but it's actually per launch/attach block.
2020-12-22 15:45:26 +00:00
Ben Jackson
f8d1e484f9
Update CONTRIBUTING.md 430957512
Minor fix and correct CI path
2020-12-18 17:10:29 +00:00
Ben Jackson
61179b7670 Update CONTRIBUTING.md for PRs 421714591 2020-12-14 20:55:13 +00:00
Ben Jackson
f161ce1e8c Remove redundant comments 2020-12-14 20:55:03 +00:00
mergify[bot]
d04a8400f9
Merge pull request #318 from cposture/feat-update-gadgets-vscode-go 421286310
update gadgets vscode-go version
2020-12-14 17:03:34 +00:00
cposture
b65d9536ad update gadgets vscode-go version 2020-12-15 00:22:35 +08:00
mergify[bot]
2eb32f3153
Merge pull request #315 from puremourning/env-dup-fix 403175229
Don't copy the environment to update it
2020-12-05 23:15:43 +00:00
Ben Jackson
8261cde3c9 Don't copy the environment to update it
This causes problems on windows, and is wasteful anyway. The subprocess
will pick up the environment from its parent.
2020-12-05 16:42:07 +00:00
Ben Jackson
573121ee08
Merge pull request #312 from puremourning/watch-errors 396711812
Print failure when watch expression errors
2020-12-02 18:19:39 +00:00
Ben Jackson
632e6696ef Add SSH login for failures 2020-12-02 18:06:37 +00:00
Ben Jackson
c531686d39 Use the cask of macvim because apparently the formula requires building gcc from source 2020-12-02 18:06:37 +00:00
Ben Jackson
2eac9ddff8 Print failure when watch expression errors 2020-12-02 15:26:30 +00:00
Ben Jackson
8e2d352eb8 Fix local adapter specs 391365729
Somehow we lost the ability to define adapters in the local
.vimspector.json, I think when GetConfigurations was added.

Put that feature back.
2020-11-30 10:19:02 +00:00
mergify[bot]
4ac9785217
Merge pull request #308 from andwilley/docs/update-java-example 388567332
Add detail about potential troubleshooting. Recommend jsdls_extension…
2020-11-28 11:51:17 +00:00
Drew Willey
4a45753a4c Add detail about potential troubleshooting. Recommend jsdls_extension_path be set in vimrc. 2020-11-27 21:16:51 -07:00
Ben Jackson
e15c50a4f4 Don't request strack trace if the thread isn't stopped 387960492 2020-11-28 00:17:42 +00:00
Ben Jackson
17a9494dbc
Merge pull request #306 from felixfeit/patch-1 385796234
Fix typos.
2020-11-26 18:43:04 +00:00
felixfeit
4db4880b6d
Fix typos. 2020-11-26 19:31:46 +01:00
Ben Jackson
4c2b3bd886
Make it clear that the mappings have to be enabled 385224917 2020-11-26 12:38:34 +00:00
Ben Jackson
e6500d39d8
Neovim has prompt buffers in nightly 2020-11-26 12:11:23 +00:00
mergify[bot]
ff4acb17d1
Merge pull request #303 from eduardomezencio/lua-fix-configs 377821143
Improve lua configuration and test files
2020-11-22 21:55:53 +00:00
Eduardo Mezêncio
4f03e4f65a Improve lua configuration and test files
Change lua test files to call `require 'lldebugger'` only when using
love, because it's not needed with lua or luajit. Also add `stopOnEntry`
key to test `.vimspector.json` because it works correctly with this
change.
2020-11-22 18:38:40 -03:00
mergify[bot]
23130d74ad
Merge pull request #297 from puremourning/threads 377436559
[WIP] Improve Threads Handling
2020-11-22 15:07:22 +00:00
Ben Jackson
5ab92a7e67 Breakpont tests too flaky 2020-11-22 14:54:02 +00:00
Ben Jackson
979c1e8779 Reshuffle README 2020-11-22 14:35:30 +00:00
Ben Jackson
a9d0ebde0b Add mapping for Focus, and make focusing a stack frame focus the thread 2020-11-22 14:13:15 +00:00
Ben Jackson
82307ff1ba Correctly handle the 'continue' response when continuing a specific thread 2020-11-22 14:13:15 +00:00
Ben Jackson
7d5ad3ffa1 Another flaky test 2020-11-22 14:13:15 +00:00
Ben Jackson
8801c2dac4 Fix pause/continue of individual threads
work around buggy java server sending invalid threads response.

java server supports this separate threads running/paused as a test
case.
2020-11-22 14:13:14 +00:00
Ben Jackson
e1c1347bdd Fix lint 2020-11-22 14:13:14 +00:00
Ben Jackson
c769e8a479 Fix up the tests to work in linux container too 2020-11-22 14:13:14 +00:00
Ben Jackson
53b1d12447 Allow setting the current thread, use a sign to highlight the line with the current thread 2020-11-22 14:13:14 +00:00
Ben Jackson
8e3a734141 Support continued event properly 2020-11-22 14:13:14 +00:00
Ben Jackson
0f0d684e92 FixUp: comment about why we apply thread state in consume_threads 2020-11-22 14:13:14 +00:00
Ben Jackson
42cdff043a Redraw the screen each 20 retries
This allows us to eyeball why something is failing
2020-11-22 14:13:14 +00:00
Ben Jackson
f0785c11f2 Allow pausing individual threads (in theory) 2020-11-22 14:13:14 +00:00
Ben Jackson
a5d66a7477 Correctly track and now actually report running/paused status
It's quirky, we have to pass the stopped event to LoadThreads so that it
can correctly work out the state of any _newly_ added threads. We now
also correctly apply the allThreadsStopped=False behaviour where you
must not allow expansion of such threads (in theory, that's untested).
2020-11-22 14:13:14 +00:00
Ben Jackson
2399a79cae start to track individual thread state 2020-11-22 14:13:14 +00:00
Ben Jackson
e9e0e9e5b9 Test for new thread creation
- don't clear the stack trace on continue - track running status
  properly (ish)
- mark threads (running) when the app is executing
- indicate the "current" thread with a different icon

TODO:
- allow user to specify current thread?
- track running status of threads individually?
- allow to pause/continue specific threads?
2020-11-22 14:13:14 +00:00
Ben Jackson
e2ca9b5318 Threads tests WIP 2020-11-22 14:13:14 +00:00
mergify[bot]
e5a765409a
Merge pull request #302 from puremourning/updated-go 377362404
Update vscode-go to latest version
2020-11-22 13:39:46 +00:00