Eric3 and mod_python debugging ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arso - Italy

    #1

    Eric3 and mod_python debugging ?


    Hi

    someone have already used eric3 for debugging code running on apache
    using mod_python ?
    After the execution of the patch for apache.py, how the debug is activated ?

    More thanks for any response.

    --

    =============== =============== =============== =========
    Arso - Italy Gentoo 2004-02 Stage 1

    Armada e500
    =============== =============== =============== =========
  • Detlev Offenbach

    #2
    Re: Eric3 and mod_python debugging ?

    Arso - Italy wrote:
    [color=blue]
    >
    > Hi
    >
    > someone have already used eric3 for debugging code running on apache
    > using mod_python ?
    > After the execution of the patch for apache.py, how the debug is
    > activated ?
    >
    > More thanks for any response.
    >[/color]

    Just follow the directions for debugging given in the mod_python manual.

    Detlev

    Comment

    • Arso - Italy

      #3
      Eric3 and mod_python debugging (reply from Detlev)

      Detlev Offenbach wrote:
      [color=blue]
      > Am Dienstag, 9. November 2004 00:13 schrieben Sie:
      >
      >[color=green]
      >> Arso - Gentoo wrote:
      >>
      >>[color=darkred]
      >>> Detlev Offenbach wrote:
      >>>
      >>>
      >>>> Am Montag, 8. November 2004 20:32 schrieben Sie:
      >>>>
      >>>>
      >>>>> Hi
      >>>>>
      >>>>> excuse me, i will try to use eric3 to debug interactly python scripts
      >>>>> running on apache with mod_python.
      >>>>> In the Eric documentation I have find only how to patch[/color][/color][/color]
      python.py, but[color=blue][color=green][color=darkred]
      >>>>> not how to activate the debug function.
      >>>>> Where I can find this information ?
      >>>>>
      >>>>> A lot of thanks.
      >>>>>
      >>>>
      >>>> In the mod_python manual.
      >>>>
      >>>> Detlev
      >>>>
      >>>
      >>> Thanks
      >>> when I have activate in apache configuration for a specific virtual[/color][/color][/color]
      host[color=blue][color=green][color=darkred]
      >>> PythonDebug on
      >>> PythonEnablePdb on
      >>>
      >>> I get the below error.
      >>> Are there other activity or setting to do for using eric debugger ?
      >>> Other lot of thanks.
      >>>
      >>> Mod_python error: "PythonAccessHa ndler draco.dracohand ler"
      >>>
      >>> Traceback (most recent call last):
      >>>
      >>> File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
      >>> 298, in HandlerDispatch
      >>> result = pdb.runcall(obj ect, req)
      >>>
      >>> File
      >>> "/usr/lib/python2.3/site-packages/eric3/Debugger/eric3dbgstub.py ",
      >>> line 60, in runcall
      >>> return debugger.run_ca ll(__scriptname , func, *args)
      >>>
      >>> AttributeError: 'NoneType' object has no attribute 'run_call'
      >>>[/color]
      >>
      >> Hi
      >> I have try also with your example, modpython_dbg custumizing the path
      >> with the absolute value in the
      >> initDebugger method.
      >> The hello message apper but the debugger is not fired even there are
      >> some breakpoints active for the modpython_dbg itself.
      >> What is wrong ?
      >>
      >> For execution with draco i have inserted the call to
      >> apache.initDebu gger(mpreq.file name) in the handler method of
      >> dracohandler but I get the above error.
      >> What is wrong ?
      >>
      >> If there are some document that describe the step for use the debug
      >> write to me where are there.
      >>
      >> Thanks.
      >>[/color]
      >
      >
      > There is a little document in erics Documentation directory[/color]
      (mod_python.htm l). This gives instruction on how I got it working.[color=blue]
      >
      > Detlev
      >
      >[/color]
      Excuse me. My mistake, I have activate *PythonEnablePd b on* only for the
      virtual domain managed with draco and not for that used for
      modpython_dbg. Now modpython_dbg.p y is running with debug.
      The features of eric are VERY interesting. Either for the debugging
      features either for the editor, syntax highlight autocompletion ecc.

      For information:
      The python options *PythonDebug on* and *PythonEnablePd b on* are set
      directly into apache.conf in the directive "Directory" for the
      virtual-domain managed by mod_python.
      Sometimes after the end of the execution and after the popup form
      informing of the exit status of the script, eric terminate.
      It is normal ? In the debug option "Automatic reset after client exit"
      isn't activated.

      This message will be post in comp.lang.pytho n too.

      Regards and a lot of thanks.

      --

      =============== =============== =============== =========
      Arso - Italy Gentoo 2004-02 Stage 1

      Armada e500
      =============== =============== =============== =========

      Comment

      Working...