Python Forum
debugging help on Visual Studio Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
debugging help on Visual Studio Code
#11
Hi snippsat,

after taking cursor back, if I insert extra print line, that line is not printing value,

Cursor is coming back.




Thanks
mg
Reply
#12
That is because the new line is not part of your program. When you run a python program the program gets compiled into bytecodes. Typing new lines into a program during debugging does not perform the compile step. The bytecodes, the actual program you are running, are unchanged.

You can execute python commands you type (or copy/past) in the debug terminal. The debug terminal is also useful for inspecting the values of objects.
Reply
#13
Thumbs Up 
Hi deanhystad,

Thanks for the information my doubt clear now.


Thanks
mg
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,052 Nov-15-2023, 06:56 PM
Last Post: jst
  How to set PYTHONPATH in Visual Studio Code? aupres 5 4,240 Aug-15-2023, 03:51 PM
Last Post: snippsat
  how do I open two instances of visual studio code with the same folder? SuchUmami 3 895 Jun-26-2023, 09:40 AM
Last Post: snippsat
  Visual Studio Code NewPi 3 1,063 May-16-2023, 11:13 PM
Last Post: snippsat
  Visual Studio Code venv ibm_db error mesi1000 7 2,834 Nov-13-2022, 12:36 AM
Last Post: snippsat
  Problem with importing Python file in Visual Studio Code DXav 7 5,125 Jun-15-2022, 12:54 PM
Last Post: snippsat
  Visual Studio Code Intellisense for Imported Modules Not Working hockinsk 1 2,732 Apr-23-2022, 04:41 PM
Last Post: deanhystad
Photo Visual studio code unable to color syntax on python interpreter tomtom 4 6,924 Mar-02-2022, 01:23 AM
Last Post: tomtom
  compile error Visual Studio Code jamie_01 2 1,698 Jan-25-2022, 09:36 AM
Last Post: Larz60+
  Calling python from c++ in visual studio pdk5 0 2,175 May-24-2021, 10:18 AM
Last Post: pdk5

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020