473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
================================================== ====
Jul 18 '05 #1
2 2062
Arso - Italy wrote:

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.


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

Detlev
Jul 18 '05 #2
Detlev Offenbach wrote:
Am Dienstag, 9. November 2004 00:13 schrieben Sie:

Arso - Gentoo wrote:

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 python.py, but> 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 host 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: "PythonAccessHandler draco.dracohandler"

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
298, in HandlerDispatch
result = pdb.runcall(object, req)

File
"/usr/lib/python2.3/site-packages/eric3/Debugger/eric3dbgstub.py",
line 60, in runcall
return debugger.run_call(__scriptname, func, *args)

AttributeError: 'NoneType' object has no attribute 'run_call'

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.initDebugger(mpreq.filename) 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.

There is a little document in erics Documentation directory

(mod_python.html). This gives instruction on how I got it working.
Detlev

Excuse me. My mistake, I have activate *PythonEnablePdb on* only for the
virtual domain managed with draco and not for that used for
modpython_dbg. Now modpython_dbg.py 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 *PythonEnablePdb 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.python too.

Regards and a lot of thanks.

--

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

Armada e500
================================================== ====
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Geoffrey Clements | last post by:
I'm brand new to Python - just giving it a try but I'm having trouble with eric3. This query isn't exactly about the Python language but it is related. I run KDE on linux so I already have Qt...
0
by: Surya Kiran | last post by:
Hi, I'm a newbie to eric3 debugger. I'm facing a problem in debugging. Let me explain my problem. I'm using eric3.2 with python2.3, qt-3.2.0 and pyqt-3.7 I've a project, which spans over a...
22
by: dataangel | last post by:
I'm trying to find an IDE for python that I'm comfortable with. For my needs IDLE actually works 99% of the time, but on my current project I need to have lots of files open at once, and I would...
5
by: Alexander Zatvornitskiy | last post by:
Hello All! I'am using eric3 IDE under win32 (snapshot 2005-04-10), and have a trouble. I use this code: print "enter q to quit, or smthing else to continue" while not sys.stdin.readline()=="q":...
6
by: Anthony L. | last post by:
I am writing a web application that is comparable to a content management system used in blogging. I really want to use Python after having done some evaluation coding using Python 2.3.5 with...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
4
by: John Salerno | last post by:
I get this internal error message when I try to access a PSP page: "Invalid command 'PythonHandler', perhaps mis-spelled or defined by a module not included in the server configuration" So it...
2
by: Byte | last post by:
Decided to try the eric3 IDE, but I cant figure out how to start it! When I extract the file, all I can see is a ton of files and Python scripts. What script will run the program? Where is it?...
0
by: EricClack | last post by:
I've been using Python, MySQL, Apache and mod_python for some time now and think that it is a great combination for many projects. However I have been constantly surprised by the lack of any...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.