Re: [Eric] Debug modules, that are supposed to be executed with -m

2017-03-14 Thread Hans-Peter Jansen
On Dienstag, 14. März 2017 11:17:10 Detlev Offenbach wrote:
> How is this done with pdb?

Don't know, but I guess, that the Script execute/debug dialog needs another 
option "Run as module", that adds -m to the interpeter execution arguments.

Pete

> 
> Am Montag, 13. März 2017, 23:08:13 CET schrieb Hans-Peter Jansen:
> > Hi Detlev,
> > 
> > I ran into a funny issue related to Python3.
> > 
> > How can I debug a script in Eric, if this is supposed to be executed as a
> > module (e.g. called with python3 -m ...), which happens, if one want to
> > use
> > relative paths and arbitrary entry points...
> > 
> > The option to rewrite everything with absolute paths isn't always
> > feasible.
> > 
> > Cheers,
> > Pete
> > ___
> > Eric mailing list
> > Eric@riverbankcomputing.com
> > https://www.riverbankcomputing.com/mailman/listinfo/eric

___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Wish: Debug option to move program counter

2017-03-14 Thread Hans-Peter Jansen
On Dienstag, 14. März 2017 11:43:18 Detlev Offenbach wrote:
> Hi,
> 
> move the cursor to the line you want to stop next and select "Continue to
> cursor" (Shift+F6). Is that what you are looking for?

No, I really mean changing the execution path. 

Have a look, how pdb does it here:

https://svn.python.org/projects/python/trunk/Lib/pdb.py

Search for do_jump implementation.

In that form, it can modify the line to execute next in the current frame 
only, but this is very helpful to skip or repeat some lines in a debug 
session.

Hth,
Pete

> Detlev
> 
> Am Montag, 13. März 2017, 23:22:42 CET schrieb Hans-Peter Jansen:
> > Hi Detlev,
> > 
> > me again :wink:
> > 
> > During a debug session today, the wish to modify the debug program counter
> > arose (similar to pdbs j(ump) command).
> > 
> > Do you think, this is something useful for Eric, or is it available
> > already, and I just haven't figured out, how?
> > 
> > I attempted to add Eric to:
> > https://wiki.python.org/moin/PythonDebuggingTools
> > but the wiki don't let me authenticate at the moment.
> > 
> > If somebody in the audience already has a functioning python wiki account,
> > please add Eric there...
> > 
> > Cheers,
> > Pete
> > ___
> > Eric mailing list
> > Eric@riverbankcomputing.com
> > https://www.riverbankcomputing.com/mailman/listinfo/eric

___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] getpass in Eric console

2017-03-14 Thread Hans-Peter Jansen
On Dienstag, 14. März 2017 15:12:45 Detlev Offenbach wrote:
> Hi Pete,
> 
> that was a good one. It was actually two issues in one. The fix will be in
> the next release. If it is needed urgently please get it from the source
> code repository.

Glad, you found it. 

I was able to work around and solve the issue, that I was hunting while 
stumbling over this...

Happily awaiting your next release.

Thank you,
Pete

> Detlev
> 
> Am Dienstag, 14. März 2017, 14:01:24 CET schrieb Hans-Peter Jansen:
> > Hi Detlev,
> > 
> > using Eric 17.03, something strange happens, when attempting to debug
> > scripts that use getpass.
> > 
> > Here's, what happened, when calling it manually (in console).
> > 
> > I've entered '12345' all three times:
> > >>> import getpass
> > >>> getpass.getpass("PW:")
> > 
> > PW:
> > '45'
> > 
> > >>> getpass.getpass("PW:")
> > 
> > PW:
> > '4512345'
> > 
> > >>> getpass.getpass("PW:")
> > 
> > PW:
> > '451234512345'
> > 
> > 
> > Cheers,
> > Pete
> > ___
> > Eric mailing list
> > Eric@riverbankcomputing.com
> > https://www.riverbankcomputing.com/mailman/listinfo/eric

___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] isn't it cool?

2017-03-14 Thread Eric
Hi friend! 


You need to take a  look  at that nice  and beautiful stuff I came  across 
yesterday, it's really  cool! Here is the link 
http://deliver.vhmortgages.ca/fbfa

All the best, Eric

___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Wish: Debug option to move program counter

2017-03-14 Thread Tobias Rzepka

  
  
Hello Pete, hello Detlev,
I've done already a proof of concept for the debugger. There are
  some constraints given by Python but it works to change the
  instruction pointer in a function/ method without executing the
  code between the actual and new instruction pointer.
I think, it could be very helpful a lot of times. I'll work on it
  further as one of the next topics

Tobias


Detlev Offenbach schrieb am 14.03.2017
  um 11:43:


  Hi,

move the cursor to the line you want to stop next and select "Continue to 
cursor" (Shift+F6). Is that what you are looking for?

Detlev

Am Montag, 13. März 2017, 23:22:42 CET schrieb Hans-Peter Jansen:

  
Hi Detlev,

me again :wink:

During a debug session today, the wish to modify the debug program counter
arose (similar to pdbs j(ump) command).

Do you think, this is something useful for Eric, or is it available already,
and I just haven't figured out, how?

I attempted to add Eric to:
https://wiki.python.org/moin/PythonDebuggingTools
but the wiki don't let me authenticate at the moment.

If somebody in the audience already has a functioning python wiki account,
please add Eric there...

Cheers,
Pete
___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric

  
  



  

___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] getpass in Eric console

2017-03-14 Thread Detlev Offenbach
Hi Pete,

that was a good one. It was actually two issues in one. The fix will be in the 
next release. If it is needed urgently please get it from the source code 
repository.

Detlev

Am Dienstag, 14. März 2017, 14:01:24 CET schrieb Hans-Peter Jansen:
> Hi Detlev,
> 
> using Eric 17.03, something strange happens, when attempting to debug
> scripts that use getpass.
> 
> Here's, what happened, when calling it manually (in console).
> 
> I've entered '12345' all three times:
> >>> import getpass
> >>> getpass.getpass("PW:")
> 
> PW:
> '45'
> 
> >>> getpass.getpass("PW:")
> 
> PW:
> '4512345'
> 
> >>> getpass.getpass("PW:")
> 
> PW:
> '451234512345'
> 
> 
> Cheers,
> Pete
> ___
> Eric mailing list
> Eric@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/eric

-- 

--
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


[Eric] getpass in Eric console

2017-03-14 Thread Hans-Peter Jansen
Hi Detlev,

using Eric 17.03, something strange happens, when attempting to debug scripts 
that use getpass.

Here's, what happened, when calling it manually (in console). 
I've entered '12345' all three times:

>>> import getpass
>>> getpass.getpass("PW:")
PW:
'45'
>>> getpass.getpass("PW:")
PW:
'4512345'
>>> getpass.getpass("PW:")
PW:
'451234512345'
>>> 

Cheers,
Pete
___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Wish: Debug option to move program counter

2017-03-14 Thread Detlev Offenbach
Hi,

move the cursor to the line you want to stop next and select "Continue to 
cursor" (Shift+F6). Is that what you are looking for?

Detlev

Am Montag, 13. März 2017, 23:22:42 CET schrieb Hans-Peter Jansen:
> Hi Detlev,
> 
> me again :wink:
> 
> During a debug session today, the wish to modify the debug program counter
> arose (similar to pdbs j(ump) command).
> 
> Do you think, this is something useful for Eric, or is it available already,
> and I just haven't figured out, how?
> 
> I attempted to add Eric to:
> https://wiki.python.org/moin/PythonDebuggingTools
> but the wiki don't let me authenticate at the moment.
> 
> If somebody in the audience already has a functioning python wiki account,
> please add Eric there...
> 
> Cheers,
> Pete
> ___
> Eric mailing list
> Eric@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/eric

-- 

--
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Debug modules, that are supposed to be executed with -m

2017-03-14 Thread Detlev Offenbach
How is this done with pdb?

Am Montag, 13. März 2017, 23:08:13 CET schrieb Hans-Peter Jansen:
> Hi Detlev,
> 
> I ran into a funny issue related to Python3.
> 
> How can I debug a script in Eric, if this is supposed to be executed as a
> module (e.g. called with python3 -m ...), which happens, if one want to use
> relative paths and arbitrary entry points...
> 
> The option to rewrite everything with absolute paths isn't always feasible.
> 
> Cheers,
> Pete
> ___
> Eric mailing list
> Eric@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/eric

-- 

--
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/eric