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
  Visual Studio Code help aaronrousch 4 3,790 Jan-25-2025, 05:55 AM
Last Post: ndc85430
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 3,195 Nov-27-2024, 02:20 PM
Last Post: menator01
  Code Completion in Visual Studio for External Libraries mjakov 0 580 Aug-25-2024, 02:48 PM
Last Post: mjakov
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 4,189 Nov-15-2023, 06:56 PM
Last Post: jst
  How to set PYTHONPATH in Visual Studio Code? aupres 5 12,526 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 4,042 Jun-26-2023, 09:40 AM
Last Post: snippsat
  Visual Studio Code NewPi 3 2,075 May-16-2023, 11:13 PM
Last Post: snippsat
  Visual Studio Code venv ibm_db error mesi1000 7 4,908 Nov-13-2022, 12:36 AM
Last Post: snippsat
  Problem with importing Python file in Visual Studio Code DXav 7 9,630 Jun-15-2022, 12:54 PM
Last Post: snippsat
  Visual Studio Code Intellisense for Imported Modules Not Working hockinsk 1 4,288 Apr-23-2022, 04:41 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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