Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-10 Thread Magnus Lycka
Mike Meyer wrote: In that case, you're using the wrong IDE. I run the Python interpeter inside of Emacs. I edit my code in another buffer. In the source code buffer, I hit M-C-x, and the current version of the function I'm currently editing gets sent to the interpreter. Reload is pretty easy

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-10 Thread Ed Singleton
I used Visual Basic a long time in the past and I know what you mean. The ability to step through code line by line was very useful in a language where you often didn't know what was happening. I particularly loved the ability to hover the mouse over any variable or expression and see the value

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-10 Thread Steven D'Aprano
On Wed, 09 Nov 2005 18:04:02 +, Steve Holden wrote: how can such a dynamic language like python not be able to do this. Do you try to ignore the syntax and grammar of the programming language you are coding in too, or only English? That's rather unkind. I'd judge we are plainly

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-10 Thread Mike Meyer
Magnus Lycka [EMAIL PROTECTED] writes: Mike Meyer wrote: In that case, you're using the wrong IDE. I run the Python interpeter inside of Emacs. I edit my code in another buffer. In the source code buffer, I hit M-C-x, and the current version of the function I'm currently editing gets sent to

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Fabio Zadrozny
Hi Dave, Currently there is no python debugger (that I know of) that does it, altough tools are beggining to get to it (another example outside of the python world is that eclipse already does it for java). If you use the pdb (that is the command-line debugger that comes along with python),

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Magnus Lycka
python wrote: so how can i use python to debug code and change that code without having to restart the code. I don't know how well the commercial GUIs, such as Wing IDE manage to handle debugging. Perhaps that's worth looking into. It's my impression that debugger support in Python is weaker

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Steven D'Aprano
On Tue, 08 Nov 2005 13:38:28 -0500, python wrote: thanks for all that have replied so far. i still find it __very__ hard to believe that i cannot edit code inside a function while debugging it. You write a function: def myfunct(s): # input arg s is a string foo = s*3 bar =

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Steve Holden
Steven D'Aprano wrote: On Tue, 08 Nov 2005 13:38:28 -0500, python wrote: [...] as i mentioned even micro$soft can do this using statically type languages like visual basic and csharp. also, both visualbasic and csharp have goto statements, which i do to not use in final code but can be real

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Mike Meyer
Steve Holden [EMAIL PROTECTED] writes: Steven D'Aprano wrote: On Tue, 08 Nov 2005 13:38:28 -0500, python wrote: [...] as i mentioned even micro$soft can do this using statically type languages like visual basic and csharp. also, both visualbasic and csharp have goto statements, which i do to

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Neil Hodgson
Steven D'Aprano: You write a function: def myfunct(s): # input arg s is a string foo = s*3 bar = s.upper() + foo # LINE 2 blob = foo.lower() + bar return blob You enter the debugger and single-step to the marked line LINE 2. Then you edit the code to this:

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-08 Thread python
thanks for all that have replied so far. i still find it __very__ hard to believe that i cannot edit code inside a function while debugging it. as i mentioned even micro$soft can do this using statically type languages like visual basic and csharp. also, both visualbasic and csharp have goto

how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread python
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that keeps me in the windows/basic world. while i will agree that it has not evolved well, it does have

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread James Stroud
On Monday 07 November 2005 16:56, python wrote: so how can i use python to debug code and change that code without having to restart the code. look into reload() -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com/

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread Mike Meyer
python [EMAIL PROTECTED] writes: i am a long time windows user and have had a great way to learn new api. There's a better way. See below. to write some code and then run it. if there is an error, the debugger will load. then i can figure out what the eror is, just touch up the ocde and