- .NET Core 2.1 SDK
- C# Extension to VS Code (all platforms)
- Python 2.7
- Python 3.6
Alternative: Visual Studio 2017 (Windows only) with .NET Core and C# Workloads. Community Edition is free and is fully functional.
git clone https://github.com/microsoft/ptvs
cd Python/Product/VsCode/AnalysisVsc
dotnet build
Visual Studio 2017:
- Open solution in Python/Product/VsCode
- Build AnalysisVsc project
- Binaries arrive in Python/BuildOutput/VsCode/raw
- Delete contents of the analysis folder in the Python Extension folder
- Copy *.dll, *.pdb, *.json fron Python/BuildOutput/VsCode/raw to analysis
- In VS Code set setting python.downloadCodeAnalysis to false
- In VS Code set setting python.jediEnabled to false
Folow regular TypeScript debugging steps
- Launch another instance of VS Code
- Open Python/Product/VsCode/AnalysisVsc folder
- Python Analysis Engine code is in Python/Product/VsCode/Analysis
- Run extension from VS Code
- In the instance with C# code select Dotnet Attach launch task.
- Attach to dotnet process running Microsoft.PythonTools.VsCode.dll
On Windows you can also attach from Visual Studio 2017.
- Build C# code
- Copy binaries to analysis folder
- Use the
Launch Extension
launch option.
- Run the Unit Tests via the
Launch Analysis Engine Tests
. - On Windows you can also open complete PTVS solution in Visual Studio and run its tests (or at least the Analysis section).