Commit graph

8 commits

Author SHA1 Message Date
Ben Jackson
45a8176de3 remove pointless bothering message 2018-05-26 20:41:57 +01:00
Ben Jackson
7d3af848cf Separate out the display of 'requested' and 'applied' breakpoints
This is a mess, with a load of duplication, but it's a step. When you
request a breakpoint, we add one (in state ENABLED). You can then toggle
it again to change to DISABLED. And once more to delete it.

Once we start the debug server, that all changes and we just start
sending the breakpoints directly to the server and updating based on the
responses. This is far from ideal and somewhat jarring, but this
approach allows me to play around with ideas about what the user
experience should look like.
2018-05-26 19:54:45 +01:00
Ben Jackson
9d9c2214f3 Breakpoints returned from servers rarely have source set
For line-breakpoints we already know it, so just use what we said
originally. For method breakpoints, we have no clue. While some servers
return a line, it could be in any file, so we just ignore them.
2018-05-26 19:08:59 +01:00
Ben Jackson
76f26551fb Probably not working: allow unverified breakpoints 2018-05-26 18:52:09 +01:00
Ben Jackson
c4aefc110c The reason this doesn't work is the servers don't realy populate the breakpoints list in the response. Also, the file:line breakpoints just simply down't work in c++ 2018-05-23 00:34:08 +01:00
Ben Jackson
c9a45b3bdc First attempt to make breakpoints work. Doesn't. Python at least responds with the breakpoints. MS CPP does not, and native debug just throws an error 2018-05-22 23:59:15 +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
fa84bf7ffc Refactor: Put the code window stuff in its own file 2018-05-21 00:17:26 +01:00