Commit graph

20 commits

Author SHA1 Message Date
Ben Jackson
bbd4d6b430 Fix oops on Stop 2018-05-22 01:00:43 +01:00
Ben Jackson
cd8f35e0f5 Add POC python support 2018-05-22 00:43:10 +01:00
Ben Jackson
269d09b73e Very basic support for launch configuration
This change refactors the way we launch the job and puts it all in an
internal namespace. Having done that, we are able to launch the job from
the python side. This allows us to neatly load a json file, simlar in
format to .vscode's launch.json, but sufficiently different that users
won't just expect the launch.json to work.

This change allows selecting between 2 different adapters to debug the
same c program.
2018-05-21 23:44:06 +01:00
Ben Jackson
66dd8ceb84 Remove duplicate sign id 2018-05-21 00:18:23 +01:00
Ben Jackson
fa84bf7ffc Refactor: Put the code window stuff in its own file 2018-05-21 00:17:26 +01:00
Ben Jackson
074c946d20 At program counter sign
Currently at its most trivial
2018-05-20 22:30:42 +01:00
Ben Jackson
ef5ac26f48 Fix error reporting and update demo 2018-05-20 22:03:49 +01:00
Ben Jackson
5a09914ee7 Dont mess up other window placment 2018-05-20 21:54:27 +01:00
Ben Jackson
fa627712e2 Support jumping up/down the stack
Split out stack trace view into its own thing. Support jumping to code
location.
2018-05-20 21:38:11 +01:00
Ben Jackson
7c02dd692a Make the scratch windows the same size 2018-05-20 21:09:54 +01:00
Ben Jackson
e5405ac059 Tidy API and document scopes 2018-05-20 21:09:36 +01:00
Ben Jackson
0650b5a514 Refactor: Split VariablesView into own file
This also moves all handling of message dispatch to the connection
object. That seems fine and the requirements of a "handler" are:

- implement OnEvent_<event> for any unsolicited events

Otherwise, requests are handled still by callbacks.
2018-05-20 20:50:48 +01:00
Ben Jackson
5927a1190e Refactor: Extract the variables view into another object 2018-05-20 19:40:08 +01:00
Ben Jackson
a535d65b26 Hierarchical variables and scopes
Maintain the variables in a simple tree and allow the user to
expand/collapse in the dumbest way possible. This means we don't
recursively consume all of the possible variable scopes.
2018-05-20 19:07:44 +01:00
Ben Jackson
a5c773932e Add Pause command 2018-05-20 18:09:19 +01:00
Ben Jackson
b15c4a0902 Support display of variables (sort of)
This displays the entire hierarchy in a window. This is about as
inefficient as could possibly be, but for trivial things allows you to
see the variables at least.
2018-05-20 18:08:15 +01:00
Ben Jackson
bd3a74970e Tidy the output window 2018-05-20 16:19:00 +01:00
Ben Jackson
f55dc8cd8e StepOut and Continue 2018-05-20 16:18:40 +01:00
Ben Jackson
8437397491 Actually connect to a real debug server and add some basic debugging
UI is totally placeholder
Step over/step in are the only supported commands
Hardcoded launch config using a specific debug adapter that happened to
work
Adds a trivial log file hack and fixes the protocol handler for bytes
2018-05-20 15:11:58 +01:00
Ben Jackson
cd2ccedcb6 Talk to a job from python
Very very basic inital checkin to show a way to talk to/from a Vim job
using python (mainly), and to parse the sort of messages that LSP and
VSCode debugger protocol speak (i.e. similar to http messages).

Very hacky, sort of holds together for what it is.
2018-05-16 02:31:23 +01:00