Gen-AI Developer Classroom notes 13/Sep/2025

System Setup for python

  • OS Package Managers
    • Linux:
      • Ubuntu: apt apt-get
      • RedHat: dnf yum
    • Mac: Homebrew
    • Windows: winget
  • Softwares:
    • Git:
      • Mac brew install git
      • Windows: Download manually and install to get terminal option or use winget to configure terminal on your own
    • python 3.13
      • Mac brew install python@3.13
      • Windows winget install --id=Python.Python.3.13 -e
    • Visual Studio Code
      • Windows winget install Microsoft.VisualStudioCode
      • Mac: brew install --cask visual-studio-code

Setup Visual Studio Code

  • Extensions:

    • Python
    • Jupyter
  • Command Pallete

    • Window Ctrl+Shift+p
    • Mac Cmd + Shift + p
  • Visual studio code cheatsheet

  • Prompt:
As an expert user in visual studio code. I'm beginner is vscode  `<what you need>`Give me shortcut to start debugging python code on windows

Debug some program

  • Create a new folder
mkdir c:\temp
mkdir c:\temp\practice
cd c:\temp\practice
code .
  • Create a new file main.py and copy the code from here

Preview

  • Debugging terms
    • Breakpoint
    • Step Over (execute the current line)
    • Step Into (Get into the function …)
    • Variables:
    • Stack Trace/Call Stack

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading