Skip to content

Latest commit

 

History

History
70 lines (41 loc) · 3.9 KB

README.md

File metadata and controls

70 lines (41 loc) · 3.9 KB

PyCon 2019

Debug Python with Visual Studio Code: Tips and Tricks Tutorial

Author Dave Glover, Microsoft Cloud Developer Advocate
Platforms Linux, macOS, Windows, Raspbian Buster
Tools Visual Studio Code Insiders Edition
Language Python
Date As of August 2019

Follow me on Twitter @dglover

Tutorial Description

Python Debugging: Pro Tips and Not-So-Obvious Tricks

If you are anything like me, when you started with Python 'print' was the debugger of choice. But you likely found that was slow, tedious, and didn't cut it for more complex problems.

Let’s dive into methods for debugging remote python in environments such as CircuitPython, Raspberry Pi, Docker containers, remote Linux Servers, and Jupyter Notebooks.

You’ll learn how to sync code to devices, attach debuggers, and step through your code. And existing (or newly forged) Jupyter fans will learn tips to debug your notebooks.

This fun session covers a range of scenarios and empowers you to supercharge your debugging techniques!

Hardware Requirements

  1. Bring your own laptop running one of the follow Operating Systems:

  2. You will have access to a network shared Raspberry Pi. Feel free to bring your own Raspberry Pi (model with WiFi required), must have a unique network/host name.

Software Installation

set up requirements

This hands-on lab uses Visual Studio Code. Visual Studio Code is a code editor and is one of the most popular Open Source projects on GitHub. It is supported on Linux, macOS, and Windows.

Install:

  1. Visual Studio Code Insiders Edition

    As at August 2019, Visual Studio Code Insiders Edition is required as it has early support for Raspberry Pi and Remote Development over SSH.

  2. Remote - SSH Visual Studio Code Extension

For information on contributing or submitting issues see the Visual Studio GitHub Repository. Visual Studio Code documentation is also Open Source, and you can contribute or submit issues from the Visual Studio Documentation GitHub Repository.

Debugging Web and Docker Container Apps on a Raspberry Pi

Dev.to (Works with Google Translate)