Skip to content

Commit 735c6d7

Browse files
robertoaloifacebook-github-bot
authored andcommitted
Fix docs for edb.erl
Summary: * Add missing documentation for the `step_over` and `step_out` functions * Remove unnecessary spacing * Fix typo in edoc-style comment and auto-convert it to Markdown Reviewed By: jcpetruzza Differential Revision: D71976759 fbshipit-source-id: b76ab1d55d3f2cdd137185725cd2105b4fc2a544
1 parent 2785ef6 commit 735c6d7

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

edb_core/src/edb.erl

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,17 +406,24 @@ pause() ->
406406

407407
-doc """
408408
Continues the execution on the remote node and returns right away.
409-
410409
Returns `not_paused` if no process was paused, otherwise `resumed`.
411410
""".
412411
-spec continue() -> {ok, resumed | not_paused}.
413412
continue() ->
414413
call_server(continue).
415414

415+
-doc """
416+
Continues the execution on the remote node, until the next expression finishes.
417+
""".
416418
-spec step_over(pid()) -> ok | {error, step_error()}.
417419
step_over(Pid) ->
418420
call_server({step_over, Pid}).
419421

422+
-doc """
423+
Continues the execution on the remote node, until the current function returns.
424+
If the function is not tail-recursive, we step over it.
425+
If the function is tail-recursive, we step into it.
426+
""".
420427
-spec step_out(pid()) -> ok | {error, step_error()}.
421428
step_out(Pid) ->
422429
call_server({step_out, Pid}).
@@ -570,12 +577,13 @@ when
570577
stack_frame_vars(Pid, FrameId, MaxTermSize) ->
571578
call_server({stack_frame_vars, Pid, FrameId, MaxTermSize}).
572579

573-
%% doc
574-
%% Run `io_lib:format(Format, Args)' on the remote node.
575-
%%
576-
%% This is useful to get a human-readable representation of terms
577-
%% where Pids, Refs, etc. are displayed relative to the node being
578-
%% debugged.
580+
-doc """
581+
Run `io_lib:format(Format, Args)` on the remote node.
582+
583+
This is useful to get a human-readable representation of terms
584+
where Pids, Refs, etc. are displayed relative to the node being
585+
debugged.
586+
""".
579587
-spec format(Format, Args) -> binary() when
580588
Format :: io:format(),
581589
Args :: [term()].

0 commit comments

Comments
 (0)