Skip to content

Commit

Permalink
better clickable output for log-points
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGeorge committed Mar 1, 2021
1 parent 1a6924b commit 6fc9010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/els_dap/src/els_dap_general_provider.erl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ handle_info( {int_cb, ThreadPid}
{log, Expression} ->
Return = safe_eval(ProjectNode, ThreadPid, Expression, no_update),
LogMessage = unicode:characters_to_binary(
io_lib:format("@~s:~b -> ~w~n", [Module, Line, Return])
io_lib:format("~s:~b - ~w~n", [source(Module, ProjectNode), Line, Return])
),
els_dap_server:send_event(<<"output">>, #{ <<"output">> => LogMessage }),
els_dap_rpc:continue(ProjectNode, ThreadPid)
Expand Down

0 comments on commit 6fc9010

Please sign in to comment.