Commit graph

877 commits

Author SHA1 Message Date
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
Ben Jackson
f87aa4aa19 Undo flakiness hack 2020-11-22 13:30:14 +00:00
Ben Jackson
07ec08e664 Fix clearing temp breakpoints - ensure that the isngs are undisplayed 2020-11-22 13:25:10 +00:00
Ben Jackson
3330c704d7 Too many flakes 2020-11-22 12:46:15 +00:00
Ben Jackson
87ce1734ea Update vscode-go to latest version 2020-11-22 12:31:21 +00:00
mergify[bot]
48e075624a
Merge pull request #301 from puremourning/winbar-neovim
Work around neovim WinBar rendering bug
2020-11-19 23:45:01 +00:00
Ben Jackson
b36f9e893a Work around neovim WinBar rendering bug 2020-11-19 23:29:13 +00:00
mergify[bot]
b7de25e3d1
Merge pull request #296 from puremourning/update-servers 366924211
Update servers
2020-11-16 22:09:48 +00:00
Ben Jackson
47c2cef2a1 Use a tag for tclpro to avoid installing every time 2020-11-16 21:17:36 +00:00
Ben Jackson
cd3b5f5baa Update mono debug; even though it doesn't work 2020-11-16 21:17:22 +00:00
Ben Jackson
5b88837919 Print the correct version for a git tag 366752461 2020-11-16 20:14:39 +00:00
Ben Jackson
888c558aa4
Merge pull request #294 from eduardomezencio/lua-support 366696381
Add lua support through local-lua-debugger-vscode
2020-11-16 19:35:13 +00:00
Eduardo Mezêncio
85865e0012 Add regression tests for lua support
Change Dockerfile to install lua, luajit and love and also to install
nodejs 12 needed to build the lua debug adapter. Create the
love-headless test in support/test/lua to test love without an x server.
2020-11-16 15:08:55 -03:00
Eduardo Mezêncio
7be6d852c6
Merge branch 'master' into lua-support 2020-11-16 15:04:26 -03:00
mergify[bot]
96a594e4cf
Merge pull request #295 from TamaMcGlinn/master 365842065
Fixed typo 'exisitng' in README
2020-11-16 10:49:58 +00:00
Tama
69bb2737d1 Fixed typo 'exisitng' in README 2020-11-16 11:37:12 +01:00
Eduardo Mezêncio
1eb2bc2199 Add lua to README index. 2020-11-14 20:27:27 -03:00
Eduardo Mezêncio
2819e224e7 Add lua support through local-lua-debugger-vscode
Add the lua adapter to gadgets.py and installer.py, update the README.md
file and create basic tests using lua, luajit and love.
2020-11-14 19:34:15 -03:00
Ben Jackson
2bdb30a45e update docs 363145932 2020-11-14 12:34:15 +00:00
mergify[bot]
3f3a001283
Merge pull request #292 from puremourning/codelldb-default
Recommend CodeLLDB
2020-11-13 17:02:14 +00:00
mergify[bot]
5ae3d9f336
Merge branch 'master' into codelldb-default 2020-11-09 22:41:50 +00:00
mergify[bot]
30741f8813
Merge pull request #291 from puremourning/netcoredbg-update 354840614
Update netcoredbg
2020-11-09 22:33:09 +00:00
Ben Jackson
2225735b80 Recommend CodeLLDB 2020-11-09 22:23:37 +00:00
Ben Jackson
fb86ef924b Update netcoredbg 2020-11-09 21:57:47 +00:00
mergify[bot]
97bef33660
Merge pull request #289 from sharksforarms/list-configurations
Add a GetConfigurations function
2020-11-06 17:32:59 +00:00
Emmanuel Thompson
d5b9411256 Add a GetConfigurations function 2020-11-06 12:05:14 -05:00
mergify[bot]
7b048367f7
Merge pull request #282 from puremourning/run-to-cursor 325031798
Run to cursor
2020-10-23 22:10:55 +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
0d112d70a0 Add SetLineBreakpoint and ClaerLineBreakpoint APIs
These are useful for running tests (i.e. ensure there's a breakpiont at
the start of the test) and/or other programmatic usages.

They will also be needed for setting temporary breakpionts.
2020-10-17 22:40:08 +01:00
Ben Jackson
78bec87f4e
Link to wiki for additional language support 307361565 2020-10-14 22:33:04 +01:00
mergify[bot]
c76e20cd9b
Merge pull request #280 from camilo-schoeningh-sociomantic/vscode-go-moved 307339159
vscode-go: Update plugin and use new repository address.
2020-10-14 21:18:17 +00:00