Skip to content

Attempting to debug in python "times out" on Win11 #21

@smithrobs

Description

@smithrobs

What happened?

Attempting a simple debug of a python program on Windows 11 "times out" with an error Unable to start debugging: context deadline exceeded

launch.config does not deviate from the example:

{
    "type": "pulumi",
    "request": "launch",
    "name": "pulumi preview",
    "command": "preview",
    "workDir": "${workspaceFolder}"
},

Debug console output:

Updating (dev)

View Live: <stack url>


@ Updating...............................................................
    pulumi:pulumi:Stack azure-py-dev  E1206 14:55:07.287129   30856 main.go:972] Unable to start debugging: context deadline exceeded
    pulumi:pulumi:Stack azure-py-dev  error: an unhandled error occurred: program exited with non-zero exit code: 1
    pulumi:pulumi:Stack azure-py-dev **failed** 1 error; 1 message
Diagnostics:
  pulumi:pulumi:Stack (azure-py-dev):
    E1206 14:55:07.287129   30856 main.go:972] Unable to start debugging: context deadline exceeded

    error: an unhandled error occurred: program exited with non-zero exit code: 1

Resources:

Duration: 1m1s

A non-debug pulumi up works fine.

Example

Any simple program will do

from pulumi_azure_native import resources

# Create an Azure Resource Group
resource_group = resources.ResourceGroup("resource_group")

Output of pulumi about

CLI
Version      3.142.0
Go Version   go1.23.3
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure-native  2.75.0
language  python        unknown

Host     
OS       Microsoft Windows 11 Pro
Version  10.0.22631 Build 22631
Arch     x86_64

This project is written in python: executable='F:\Projects\Pulumi\_scratch\azure-py\venv\Scripts\python.exe' version='3.12.6'

Found no resources associated with dev

Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/smithrobs
User           smithrobs
Organizations  smithrobs
Token type     personal

Dependencies:
NAME                 VERSION
pip                  24.3.1
pulumi_azure_native  2.75.0
setuptools           75.6.0
wheel                0.45.1

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/iacRelated to IaC functionality.impact/usabilitySomething that impacts users' ability to use the product easily and intuitivelykind/bugSome behavior is incorrect or out of spec

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions