IronLanguages / ironpython3

Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime.
Apache License 2.0
2.51k stars 290 forks source link

IronPython 3.4 with Visual Studio 2022 | How to debug #1659

Open yelsma opened 1 year ago

yelsma commented 1 year ago

Description

I download IronPython 3.4 from here I'm using Visual Studio 2022 with python support. I can see IronPython is correctly recognized in the Python environments window:

image

but debug fails to run with the following error: The program 'ipy32.exe' has exited with code 4294967295 (0xffffffff).

image

Note: I also tried with the IronPython nuget packet, it still doesn't work.

Steps to Reproduce

  1. Download IronPython from here
  2. Add and configure python support on Visual Studio
  3. Try to debug the code, it doesn't work while IronPython 2.7 did.

Versions

IronPython 3.4.0 (3.4.0.1000) [.NETCoreApp,Version=v6.0 on .NET 6.0.14 (64-bit)]

slozier commented 1 year ago

Unfortunately Microsoft removed their support for IronPython in VS 2022. That means if there's any hope of getting things working again someone will probably have to patch up debugpy (which I think is what VS is using these days). Although they're also only supporting 3.7+ these days so it might be a tough sell to get them to support IronPython 3.4...

yelsma commented 1 year ago

Okay, thanks for the reply. Indeed, as appears from this answer taken from debugpy, support for python 3.4 does not seem to exist. Visual Studio 2022 and Visual Studio Code therefore seem to be unusable.

Are there any alternatives for debugging? Thanks in advance.