2

I'm trying to learn Python and if you look 5-7 minutes into this tutorial he's able to - in a very illustrative way - debug (or "follow") his code. I'm unable to replicate this in a similar way in Vscode.

https://www.youtube.com/watch?v=akcEaEH91gI

Is it not able, or is it done in another way?

If you look at my screenshot. Nothing is added inside the script-console or the debugging console - as in PyCharm. Meanwhile, I get some data to the left but it's not as illustrative.

https://i.sstatic.net/KpguK.png

Not bashing Vscode, just trying to learn. :) Thanks

2
  • debugging starts at 8min, what spectacular feature are you missing in debugging this 4 line piece of python Commented Nov 11, 2020 at 20:05
  • @Duck Flightsson -Hi, how are things going? Just checking in to see if the information provided was helpful. Commented Nov 24, 2020 at 7:24

1 Answer 1

1

For the requirements you mentioned, please refer to the following:

  1. About viewing variables.

    In VSCode, we can view the variables in the code in the following two places:

    1). "VARIABLES" on the left side of "Side Bar":

    enter image description here

    2). Right-click the mouse and click "Run Current File in Ineractive Window":

    enter image description here

  2. About "DEBUG CONSOLE".

    When we use the setting "console":"internalConsole" in "launch.json", the execution result of the code will be displayed in "DEBUG CONSOLE", and VSCode will output in "integratedTerminal" by default.

    enter image description here

In addition, since they are different software, we can't require them to be exactly the same in use. But if you encounter any usage and technical problems when using VSCode, please let us know.

More reference: The use of VSCode.

Sign up to request clarification or add additional context in comments.

1 Comment

Anyone interested in using "internalConsole" globally (it is per-debug-configuration currently) may want to upvote this feature request: github.com/microsoft/vscode-python/issues/18353

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.