[PyQt] Really basic debugger question

Hans-Peter Jansen hpj at urpla.net
Wed Apr 12 09:06:53 BST 2017

On Mittwoch, 12. April 2017 17:52:18 Phil wrote:
> On Wed, 12 Apr 2017 07:32:21 +0000
> Tony Arnold <tony.arnold at manchester.ac.uk> wrote:
> > Phil,
> > 
> > On Wed, 2017-04-12 at 17:21 +1000, Phil wrote:
> > > I'm having trouble coming to grips with Eric's debugger.
> > > 
> > > I have a simple console python3 script that I want to step through
> > > viewing the variables along the way. I have set a break point.
> > > 
> > > Clicking on the debug tool brings up a "Debug Script" dialogue with
> > > three entry boxes. I understand "Working directory" but what goes
> > > into "Commandline" and "Enviroment"?
> > 
> > The Commandline box allows you to specify command line options. So if
> > you have a script 'xyz.py' and you can invoke it from the command line
> > with 'xyz.py --option1 -s', then you can put the '--option1 -s' in the
> > Commandline box in the debugger. If your script doesn't do any command
> > line processing, then leave it blank.
> Thank you Tony,
> I've left both boxes blank but nothing seems to happen other than a quick
> flash while the script runs. I expected the script to stop at the
> breakpoint and display the variable's value.
> I think I must be missing something that's very basic.

Have you tried setting the breakpoint at the very start of your script?

I'm using the debugger more often than ever, and it is doing nice. It even 
gained a killer feature lately - moving the program counter in the local 
context, e.g. you can step over code, or repeat a sequence manually, which is 
great to test conditions, that usually not happen...

Which version do you use?


More information about the PyQt mailing list