ironpython3 icon indicating copy to clipboard operation
ironpython3 copied to clipboard

IronPython 3.4 with Visual Studio 2022 | How to debug

Open yelsma opened this issue 3 years ago • 2 comments

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)]

yelsma avatar Feb 22 '23 11:02 yelsma

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...

slozier avatar Feb 26 '23 03:02 slozier

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.

yelsma avatar Feb 27 '23 15:02 yelsma