First time here? Check out the FAQ!

JeffH's profile - activity

2023-11-04 20:38:29 -0500 received badge Popular Question (source)
2023-11-01 11:46:12 -0500 received badge Famous Question (source)
2023-10-04 14:31:08 -0500 commented answer Path is duplicated, can't debug

I have now tested Wing 9.1.2, and it does indeed seem to fix the problems I was having with debugging mingw python build

2023-10-04 14:24:14 -0500 received badge Supporter ( source )
2023-10-04 07:09:37 -0500 received badge Notable Question (source)
2023-09-22 08:33:35 -0500 commented answer Path is duplicated, can't debug

Thanks so much for looking into this. Glad to know that I'm not as incompetent as I had feared... :-) Yes, it is sad th

2023-09-22 08:24:45 -0500 received badge Enthusiast
2023-09-21 17:31:55 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-21 17:31:18 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-21 17:02:31 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-21 17:01:58 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-21 17:00:59 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-21 16:59:38 -0500 commented answer Path is duplicated, can't debug

Still no joy... There was indeed a __pycache__ folder in the mytest directory, so I deleted that. But running the code i

2023-09-20 20:30:23 -0500 commented answer Path is duplicated, can't debug

OK, I think I've made some progress. I copied my project files over to the MSYS2 environment, and can run the code there

2023-09-20 14:58:34 -0500 marked best answer Path is duplicated, can't debug

I've started a new topic for the discussion that was started around PyGTK (https://ask.wingware.com/question/8485/…). PyGTK is no longer in the picture... I'm just trying to get basic debugging working on a new installation of WingIDE 9.1.1.4.

I create a new project in a temp folder. I create the following file "test.py":

print("Hello world!")
x = 4 / 0
print("All done!")

I put a break point on the divide by zero line, and run the code. The break point does not catch, and the divide by zero gives me this error:

File "C:\Temp\Python\test/c:\Temp\Python\test\test.py", line 3, in <module>

builtins.ZeroDivisionError: division by zero

You can see that the path for test.py is messed up, sort of "doubled". I assume that's why the break points aren't working. And if I double-click on the error (what always used to take me to the offending line), it does nothing.

So what stupid, simple error am I making?!

UPDATE:

I've done a little more testing. In the New Project dialog, if I select "Use Existing Python" and under Python Executable select "Use Default" , everything works just fine, with break points and normal file paths. (That uses a Python 3.8.10 environment that I have installed on my system)

However, if as Python Executable I select "Command Line" (still under "Use Existing Python"), and I select my MSYS2 environment, "C:/msys64/mingw64/bin/python.exe", then I get this behavior of "doubled" path, and break points not working:

File "C:\Temp\Python\test4/c:\Temp\Python\test4\test4.py", line 4, in <module>

builtins.ZeroDivisionError: division by zero

The MSYS2 Python executable is 3.11.5, and seems to be working normally otherwise. But the WingIDE debugger doesn't seem to be "connected" into it somehow. Any suggestions?

2023-09-20 08:22:33 -0500 received badge Editor (source)
2023-09-20 08:22:33 -0500 edited question Path is duplicated, can't debug

Path is duplicated, can't debug I've started a new topic for the discussion that was started around PyGTK (https://ask.w

2023-09-19 20:34:36 -0500 asked a question Path is duplicated, can't debug

Path is duplicated, can't debug I've started a new topic for the discussion that was started around PyGTK (https://ask.w

2023-09-19 20:25:09 -0500 received badge Popular Question (source)
2023-09-07 19:55:47 -0500 commented answer How can I run a PyGTK program in WingIDE?

Looking a little closer, the reason it can't open the offending line in the code is that the path to the file is garbled

2023-09-07 19:44:50 -0500 commented answer How can I run a PyGTK program in WingIDE?

This might be a hint... If I put an error in the code, like divide by zero, it throws an exception, and tells me which l

2023-09-07 19:34:15 -0500 commented answer How can I run a PyGTK program in WingIDE?

I have succeeded in installing an MSYS2 environment with all of the necessary modules required to run my Python module,

2023-08-29 06:22:37 -0500 marked best answer How can I run a PyGTK program in WingIDE?

I have a Python module that I used to be able to run from within WingIDE on Windows, that has the following GTK code in the header:

from gi import require_version
require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango

But since I've gotten a new computer, I can't seem to get the PyGObject modules set up in my Python 3.8.10 installation, i.e. "import gi" and related commands don't work.

At https://pygobject.readthedocs.io/en/lat… it talks about installing msys2 to use pyGObject in Windows, and if I follow those instructions, I can indeed run the gtk4-demo module in the msys2 environment.

But how do I now run my module from within WingIDE? I assume that it has something to do with setting up a custom environment in the Project Properties, but I don't think I did that on my old computer - I think I somehow managed to install PyGObject in the main Python installation? (If you do a Google search, you can see that a lot of people have struggled with this, and there have been different solutions over time.) I haven't really done anything with custom environments before, so please be specific (and gentle... :-) in your reply.

2023-08-26 15:44:04 -0500 asked a question How can I run a PyGTK program in WingIDE?

How can I run a PyGTK program in WingIDE? I have a Python module that I used to be able to run from within WingIDE on Wi

2019-06-16 11:11:40 -0500 received badge Famous Question (source)
2019-06-06 21:52:22 -0500 marked best answer Debug break on variable change?

I see how to set a conditional breakpoint on a particular line of code, but is there a way to set a breakpoint whenever a variable changes (or when it equals a particular value) anywhere in the code?

2019-06-04 07:48:33 -0500 received badge Notable Question (source)
2019-06-04 07:33:28 -0500 received badge Student (source)
2019-06-03 18:41:04 -0500 received badge Popular Question (source)
2019-06-01 08:50:01 -0500 asked a question Debug break on variable change?

Debug break on variable change? I see how to set a conditional breakpoint on a particular line of code, but is there a w