Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auxtools debugger #230

Merged
merged 31 commits into from
Nov 28, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0c6aca0
initial auxtools debug client
willox Nov 4, 2020
8780c94
milestone
willox Nov 5, 2020
953cde5
setting breakpoints
willox Nov 6, 2020
10513e5
breakpoint unsetting
willox Nov 6, 2020
c2eaa56
step-in
willox Nov 7, 2020
b3148f2
.
willox Nov 7, 2020
21f8786
step in
willox Nov 7, 2020
87a4811
hacky globals
willox Nov 8, 2020
f96e433
var reading
willox Nov 8, 2020
b22276e
use stack frame id
willox Nov 10, 2020
d2a0edf
auxtools exception catching
willox Nov 12, 2020
e2b5c8c
enabling/disabling runtime breakpoint works
willox Nov 22, 2020
7fbd044
disconnect messages
willox Nov 22, 2020
8d5526d
threads
willox Nov 23, 2020
9d46ee2
debug console notifications
willox Nov 23, 2020
bca1e28
warnings
willox Nov 23, 2020
f32291f
move variables refs handling to auxtools
willox Nov 23, 2020
fdf0d33
auxtools update
willox Nov 25, 2020
914006e
error handling
willox Nov 26, 2020
c8a297a
Merge branch 'master' of https://github.com/SpaceManiac/SpacemanDMM i…
willox Nov 26, 2020
5eed994
env vars and stuff
willox Nov 26, 2020
f2f59c8
move dap initialize event
willox Nov 26, 2020
1c77f8f
restore dap_types.rs to old contents
willox Nov 26, 2020
bcf731a
restore extools to pre-fmt contents
willox Nov 26, 2020
dd7c6ed
restore extools_bundle to pre-fmt contents
willox Nov 26, 2020
4b4d0a0
restore extools_types to pre-fmt contents
willox Nov 26, 2020
a5313dc
function breakpoints
willox Nov 26, 2020
5332f66
tabs to spaces
willox Nov 26, 2020
05c4678
better error output when receiving incorrect response
willox Nov 26, 2020
cb2c026
pass DebugEngine option instead of dm::Context into Debugger:new
willox Nov 27, 2020
7eb3d8c
Revert dm-langserver name, fix up some whitespace
SpaceManiac Nov 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
step-in
  • Loading branch information
willox committed Nov 7, 2020
commit c2eaa56106c3be88daa52f3d1994b9e3b070d855
9 changes: 9 additions & 0 deletions src/langserver/debugger/auxtools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ impl Auxtools {
.unwrap();
}

pub fn step_into(&mut self) {
// TODO: disconnect
self.requests
.send(Request::Continue {
kind: ContinueKind::StepInto,
})
.unwrap();
}

pub fn pause(&mut self) {
// TODO: disconnect
self.requests.send(Request::Pause).unwrap();
Expand Down
4 changes: 2 additions & 2 deletions src/langserver/debugger/auxtools_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub enum BreakpointReason {
pub enum ContinueKind {
Continue,
StepOver,
// StepInto,
StepInto,
// StepOut,
}

Expand All @@ -98,4 +98,4 @@ pub struct StackFrame {
pub enum BreakpointSetResult {
Success { line: Option<u32> },
Failed,
}
}
2 changes: 1 addition & 1 deletion src/langserver/debugger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ handle_request! {
}

DebugClient::Auxtools(auxtools) => {
return Err(Box::new(GenericError("auxtools can't step-in yet")));
auxtools.step_into();
}
}
}
Expand Down