Skip to content

Commit

Permalink
Merge pull request #25 from julia-vscode/sp/attachpath
Browse files Browse the repository at this point in the history
Fix path for attached debugger
  • Loading branch information
pfitzseb authored Dec 3, 2020
2 parents e8f7718 + 083ecf4 commit e68b3d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat]
JSON = "0.20, 0.21"
julia = "1"
JuliaInterpreter = "0.8"
JuliaInterpreter = "0.8.5"
JSONRPC = "1.1"

[targets]
Expand Down
4 changes: 3 additions & 1 deletion src/debugger_requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ function exec_notification(conn, state::DebuggerState, params::ExecArguments)

state.sources[0] = params.code

ex = Meta.parse(params.code)
@debug "setting source_path" file = params.file
put!(state.next_cmd, (cmd = :set_source_path, source_path = params.file))

ex = Meta.parse(params.code)
state.expr_splitter = JuliaInterpreter.ExprSplitter(Main, ex) # TODO: line numbers ?

state.frame = get_next_top_level_frame(state)
Expand Down
1 change: 1 addition & 0 deletions src/protocol/dap_message_defs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ end
@dict_readable struct ExecArguments <: Outbound
stopOnEntry::Bool
code::String
file::String
end

# Our own requests
Expand Down

0 comments on commit e68b3d1

Please sign in to comment.