Author Topic: Debugging Python in 21.0.0.12  (Read 898 times)

rowbearto

  • Senior Community Member
  • Posts: 952
  • Hero Points: 46
Debugging Python in 21.0.0.12
« on: November 15, 2016, 02:29:37 am »
Hi:

I'm trying to debug a python script and specify a working directory and script arguments.

I have my python file open in the active editor window.

I tried using the Debug->Start with Arguments

But it ignores everything I put there. It ignores my working dir (does not start in the working dir) and arguments (does not pass the arguments to the script).

I tried using Build->Python Options. Here I am able to specify the script arguments, and they are passed. However there is no place to enter here the working directory. So I am unable to start my python script in a different directory.

How to do this?

Thanks,
Rob

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 865
  • Hero Points: 55
Re: Debugging Python in 21.0.0.12
« Reply #1 on: November 15, 2016, 02:59:31 pm »
I can reproduce the "Start with Arguments", taking a look at it.

rowbearto

  • Senior Community Member
  • Posts: 952
  • Hero Points: 46
Re: Debugging Python in 21.0.0.12
« Reply #2 on: November 15, 2016, 03:05:29 pm »
Thanks. I also have no way to specify the working directory right now.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 865
  • Hero Points: 55
Re: Debugging Python in 21.0.0.12
« Reply #3 on: November 15, 2016, 03:59:32 pm »
Yes, I have no workaround for that.  It doesn't even want to honor the Project Properties "Run from dir" setting for the "Debug" tool.  So that will need to be fixed as part of the Start with Arguments fix.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 865
  • Hero Points: 55
Re: Debugging Python in 21.0.0.12
« Reply #4 on: November 15, 2016, 09:41:06 pm »
Fixed.  This will be in the point release and the next hotfix - whichever may come first.

rowbearto

  • Senior Community Member
  • Posts: 952
  • Hero Points: 46
Re: Debugging Python in 21.0.0.12
« Reply #5 on: November 15, 2016, 09:42:27 pm »
Thanks!