Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simulate debug breakpoints
#6
(03-04-2024, 02:40 AM)gimpygirl Wrote: Will GIMP 3 have a debugger? I think it's useful
In Windows? Don't count on it. On Linux, that could possibly be jury-rigged.

(03-04-2024, 02:40 AM)gimpygirl Wrote: Why shouldn't python be debugged? You can debug python without gimp
Because your Python code runs in an environment set up by Gimp, and you would need a combined Gimp+IDE environment.

On the other hand we are talking about scripts, so just Python being the glue around API calls that do the real job and very little logic in Python. You can test these calls in the Python console and when they work move them to your code. And when you have complicated logic, you can factor it in Gimp-independent code, so test/debug it outside of Gimp, and when it works, just copy it to your script.

I use debuggers in C and Java, much less in Python or Bash.
Reply


Messages In This Thread
simulate debug breakpoints - by gimpygirl - 03-03-2024, 01:56 AM
RE: simulate debug breakpoints - by Ofnuts - 03-03-2024, 05:13 PM
RE: simulate debug breakpoints - by gimpygirl - 03-03-2024, 06:21 PM
RE: simulate debug breakpoints - by Ofnuts - 03-03-2024, 09:04 PM
RE: simulate debug breakpoints - by gimpygirl - 03-04-2024, 02:40 AM
RE: simulate debug breakpoints - by Ofnuts - 03-04-2024, 08:49 AM

Forum Jump: