How to show vscode debug console? - visual-studio-code

I am writing a VS code extension and the log was output to Debug Console, but user can't see the log if they didn't open Debug Console, so I want to show VS code debug console, but I couldn't find the API to do that.
Can someone help?

vscode.commands.executeCommand('workbench.debug.action.toggleRepl');
This can show Debug Console! But it will hide the Debug Console if Debug Console has already opened.

Related

Can`t start debugging of js code in VS COde

Ufter updating debugger doesn't work. When I click RUN AND DEBUG nothing is happening. And I can't run the program in the debug console.
Previously I just clicked RUN AND DEBUG and ran the program by writing "node nameOfTheProgram.js" in debug console and it was working. How can I fix it?
errors from debug console

need help in VSCODE debug

I'm a VSCODE first-time user. I tried to run debug on a simple python file and was not successful. I got 2 strange results:
the debug tool bar showed and disappeared instantly
no local variables was shown in VARIABLE section
Please see the screenshot.
Anyone could give me a hint anything was missing in what I did?
You need the python vscode extension to debug a python file. When you press F5 to start debugging, a menu will ask you what you are trying to debug. Click on Python File. The python extension creates a launch.json file for you and starts the debugger.
I noticed the Run and Debug tab is in your screenshot. Click that tab above where the variables would be shown and it should ask you to create the launch.json file in order to debug the file.
Read more on debugging and launch configurations for python here: https://code.visualstudio.com/docs/python/debugging

Redirecting Extension Output to Debug Console - VS Code

In my extension, sending things I need to console.log() works fine while I'm in debug mode with my extension. This sends output to the Debug Console in VS Code during debug mode.
What method(s) are appropriate for sending output from the extension to the Debug Console when not in debug mode, so that the user with my extension installed can see output I want redirected there?

How to get logs in vscode debug console

I want to make vscode's extension which can get log in debug console and make suggestions for errors, but i dont know how to get the log, So my question is if have some documentation to manipulate debug console messages or how i can work with debug console messages in my vscode extension.

Enter pydev interactive console immediately on F11?

I would like to F11 a python file in Eclipse and when I hit a breakpoint automatically enter the Python Interactive Console (not the default pydev debug console).
I understand that I could upon entering debug mode open a new interactive python console (I have turned on the connection between the interactive console and the debug console) and work from there. But not only is that an extra step but it is frustrating because everytime I interact with such an interactive console it shoves me back to the debug console! Then I have to go review the interactive console. I also understand that I could do a 'runfile' from within the interactive console, but I really want to use the convenient F11 capacity of eclipse to just be in an editor, hit F11 and when I break enter the interactive console.
Basically I would like the Interactive Console to be my debug console. Possible?
If the F11 approach is not possible, is there another approach? My goal is to get my history of command typing available to me with arrow keys. Not possible in the default python debug console from what I can tell. Perhaps if I made the pydev debug console ipython?
Thanks, I have searched a lot on this but can't come up with a solution.
from PyDev 3.9.2 onwards, a console prompt with history, code-completion, etc. will appear automatically.
See: http://pydev.blogspot.com.br/2015/02/pydev-392-released.html for details.