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

Support debugger commands in the Integrated Console #600

Closed
daviwil opened this issue Mar 22, 2017 · 0 comments
Closed

Support debugger commands in the Integrated Console #600

daviwil opened this issue Mar 22, 2017 · 0 comments
Labels
Issue-Enhancement A feature request (enhancement).
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Mar 22, 2017

While debugging a script in PSv4+, the user should be able to type commands in the console to cause the debugger to continue execution. Typing ? in the console causes these commands to be offered:

 s, stepInto         Single step (step into functions, scripts, etc.)
 v, stepOver         Step to next statement (step over functions, scripts, etc.)
 o, stepOut          Step out of the current function, script, etc.

 c, continue         Continue operation
 q, quit             Stop operation and exit the debugger
 d, detach           Continue operation and detach the debugger.

 k, Get-PSCallStack  Display call stack

 l, list             List source code for the current script.
                     Use "list" to start from the current line, "list <m>"
                     to start from line <m>, and "list <m> <n>" to list <n>
                     lines starting from line <m>

 <enter>             Repeat last command if it was stepInto, stepOver or list

 ?, h                displays this help message.


For instructions about how to customize your debugger prompt, type "help about_prompt".

Currently none of these commands are working when used, the debugger remains stopped at the same line or breakpoint.

@daviwil daviwil added the Issue-Enhancement A feature request (enhancement). label Mar 22, 2017
@daviwil daviwil added this to the 0.11.0 milestone Mar 22, 2017
daviwil added a commit to daviwil/PowerShellEditorServices that referenced this issue Mar 22, 2017
This change enables debugger commands in the integrated console by acting
on the DebuggerResumeAction that is returned by the debugger when a
command gets executed.  If a DebuggerResumeAction is returned, it is used
to resume the debugger in whatever way the user requested by typing a
command.

Resolves PowerShell/vscode-powershell#600.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

1 participant