How to use Python in VS Code

This article walks you through writing Python code for the first time in VS Code, including how to use the debugger. This assumes you already have VS Code and Python installed. Note: My project path is C:/Projects/Python/python-in-vscode. Substitute your own project path where it makes sense. 1 – Install the Python extension You can use … Read more How to use Python in VS Code

Starting the Visual Studio debugger when Attach to Process doesn’t work

Problem You’re trying to debug a program with Visual Studio but Attach to Process does not work. Most likely you’re loading your code through some third-party process (like Excel), and when you try to use Attach to Process it simply doesn’t work. Solution Instead of trying to use Attach to Process, you can launch a … Read more Starting the Visual Studio debugger when Attach to Process doesn’t work

Run a Windows Service as a console app

When working on a Windows Service project you may want to run it as a Console App so you can see what’s going on. If you try to run the service in Visual Studio you’ll get an error that says: “Cannot start service from the command line or a debugger. A Windows Service must first … Read more Run a Windows Service as a console app