Author Topic: Python debugging  (Read 2740 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Python debugging
« on: August 09, 2018, 06:01:13 PM »
Python debugging is causing me trouble.

Several times I've had the debugger abruptly stop for no apparent reason - as if I had done Project->StopDebugging.

Most recently while stepping, I hit F9 to set a breakpoint, and debugging stopped.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Python debugging
« Reply #1 on: August 09, 2018, 06:24:48 PM »
Does this appear to be a new issue or has this also been an issue prior to v23 Beta?  Anything you can reproduce with regularity?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Python debugging
« Reply #2 on: August 09, 2018, 07:04:48 PM »
Seems to be new, though python debugging has never been super reliable.

Its happening often today with the script I'm working on, I've not tried anything else.


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Python debugging
« Reply #3 on: August 10, 2018, 01:40:56 PM »
Next time you are debugging Python, enable def_debug_logging and if it happens again send debug.log from config\logs.  See if we can figure this out.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Python debugging
« Reply #4 on: August 13, 2018, 09:02:00 PM »
Uploaded to jporkka-python-debug

At the end of the log there are lots of:
debug[2018-08-13T13:57:24Z]debug_gui_update_all: suspended=1
While the debugger it stopped at a breakpoint it seems to continue inserting these events.

I'd bet it is this noise that is interfering with expanding variables in locals or <add> in watches.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Python debugging
« Reply #5 on: August 14, 2018, 07:13:19 PM »
Are any of the Python modules using threading?  Trying to replicate it and trying to narrow down possibilities.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Python debugging
« Reply #6 on: August 14, 2018, 07:43:38 PM »
Probably -- just trying to debug some script that isn't quite working on my machine.
I'm debugging a simpler script right now, and it is not having this problem.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Python debugging
« Reply #7 on: August 14, 2018, 07:52:54 PM »
Maybe I spoke too soon.
Debugging a pretty simple single-threaded script and <add> in watches doesn't work.

The following:
Code: [Select]
debug[2018-08-14T12:44:46Z]debug_gui_update_all: suspended=1

is continually added to debug.log, at least while the script is suspended - about 10x per second.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6875
  • Hero Points: 530
Re: Python debugging
« Reply #8 on: August 15, 2018, 03:52:04 PM »
Beta2 will be ready soon but won't address this issue. We will need more time to address this issue.