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



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 statements, which i do to not use in final code but can be real handy when
used with the ability to change debugged code on the fly while inside the function being debugged.

for example,
if i am inside a function and there is some an error on a line and that is where the debugger is currently pointing at,
i simple copy and paste the bad code line just below the actual code line.
i fix this copied code line.
then i just turn the bad line into a comment line and the debugger will move the current focus to the next time, which
is the fixed code.

how can such a dynamic language like python not be able to do this.

i have seen functions like exec that can even run dynamically generated text on the fly.

very strange..

any other ideas,

thanks so much,

dave

"python" <d@xxxxx> wrote in message news:lISbf.9960$rc7.6825@xxxxxxxxxxx
> 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 one awesome feature that i have yet to see replicated in
> any linux product that i know about so far.
>
>
> i am a long time windows user and have had a great way to learn new api.
> 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 continue to run the code.
> i do not have to stop the code, modify the code, rerun the code.
> often an error will only happen after a complex set of conditions and not have to completely stop the app is a
> fantastic
> way to debug.
>
> there are several applications that can do this.
> in fact, the free version of the visual studio 2005, which is free, have this ability.
>
> so how can i use python to debug code and change that code without having to restart the code.
>
> thanks so much,
> dave
>
>
>


.



Relevant Pages

  • Re: CMUCL for Windows - how much $$$ ?
    ... and Linux -- let me just disagree strongly with this view of the VC++ IDE. ... It has a debugger that doesn't crash several times a day. ... Finally, yes the VB language sucks, in many and varied ways. ... never heard the development environment described as one of them. ...
    (comp.lang.lisp)
  • Re: Posix "predictable scheduling" and conditions
    ... >>> Is the last sentence a direct quote from the book? ... The compiler will not tell you anything. ... I advise you to use a language with STM. ... you don't know how to use a C/C++ debugger in a multi-threaded environment. ...
    (comp.programming.threads)
  • Re: Beyond CL?
    ... > Are you familiar with Gauche Scheme? ... This is the property I keep calling "sparseness" in language design. ... In Common Lisp, changes to do things like make everything generic would be ... finding yourself in the debugger when the good debugging context was gone. ...
    (comp.lang.lisp)
  • Re: Very, Very Green Python User
    ... do not have to worry about the debugger sucking .... ... Do watch your language on this newsgroup. ... Instance variables with double-underscore as ... with the instance variable names of classes using your "mixin" classes. ...
    (comp.lang.python)
  • Re: Adding C#-Code to VB-Project in VS 2005 without using DLL
    ... Now there's a question and a half Seth:) ... #CSharp ... The point here is that such a preprocessor, to be of any value would need to break the rules of one language to allow the rules of the other language, and, immediately, that need negates any value that such a preprocessor might have. ...
    (microsoft.public.dotnet.languages.vb)