[web2py] Docker + web2py + debugging

2015-06-25 Thread KEIGNAERT Mathieu
Dear web2pyers, I'm running web2py in docker, in a basic container, with the embedded webserver. Everything works fine. I don't know if my issue is really docker related, but I remember that in the past (on my short experience with web2py), i was able to print "blah" and read "blah" in web2py

[web2py] Debugging Web2py applications.

2015-06-05 Thread amir
One debugging method I find helpful is being able to "print" to console the variables, objects, etc. I'm creating a decoupled application and the client-side is sending args to the server-side. To understand what these args exactly entail I'd like to print them out using Python. Consider this

[web2py] Debugging auth permissions

2015-04-22 Thread Chris Guest
Here is a block of code that I added to the views/default/user.html template of my application in order to debug a permission issue. I am posting it here the hope that it is useful to others. {{ if request.args(0)=='not_authorized': groups = db(db.auth_membership.user_id == auth.user.id)

[web2py] Debugging with apache and mod_wsgi

2014-01-23 Thread Colin Lee
I am running apache2 under ubuntu 12.04 with mod_wsgi. I have a single WSGI Daemon which both the *:80 and *:443 virtual servers use. I would like to be able to debug applications but apache hangs and needs to be restarted if I call a controller function with a breakpoint in it. It's basically t

[web2py] debugging with winpdb

2013-08-01 Thread Mark Finkelstein
I've been trying to get winpdb to play nice with web2py, but I've gotten the following: winpdb python web2py.py -a password -p 8000 Failed to parse arguments: Unknown option -c I saw some previous posts seemingly getting this setup working, any tips? What debugging environments do other people

[web2py] Debugging web2py with pycharm ... how?

2013-07-15 Thread Tim Richardson
Wiith pycham 2.7.3, how can I debug as per pydev? Ie launch python web2py.py via a debug configuration ... pydev enters breakpoints in controllers & modules but when I repeat this approach with pycharm, the breakpoints never break. -- --- You received this message because you are subscribed

[web2py] Debugging with the scheduler

2013-02-26 Thread José Luis Redrejo
Hello, I'm working with async processes using the scheduler (with the unvaluable help of the "learn by trial" application from Niphlod. I wonder if there's an easy way to debug the processes that are being executed in the background (I'm having problems with them, they work ok when run from web2p

Re: [web2py] Debugging in a server

2013-02-01 Thread Massimo Di Pierro
The tickets are just pickles. On Friday, 1 February 2013 03:06:13 UTC-6, Wonton wrote: > > Hello Mariano, > > Regarding to the tickets I've seen that they are stored in my errors > directory, so I can read them there (they are not well formatted, but at > least I can see the error). > For me is

Re: [web2py] Debugging in a server

2013-02-01 Thread Wonton
Hello Mariano, Regarding to the tickets I've seen that they are stored in my errors directory, so I can read them there (they are not well formatted, but at least I can see the error). For me is more important how to insert and read traces, and following your idea I will check if there is any l

Re: [web2py] Debugging in a server

2013-01-31 Thread Mariano Reingart
AFAIK you could store the tickets in the db or coping the files and open them locally (maybe in another web2py instance) Code traces will go to your web server logging facility (if any). If you cannot access that, you could create a temp file and write the logs there. For more advanced methods, ple

[web2py] Debugging in a server

2013-01-30 Thread Wonton
Hello everyone, Finally I have my project working in my local server so I've uploaded it to the real server (via FTP to the applications directory). It's working almost perfctly, but some features are giving errors and other are simply not working (they return incorrect data). My problem, I hav

[web2py] debugging procedure

2012-06-29 Thread Janath
Hi, So far I have connected the algorithms that I developed in python IDLE to web2py. I would like to debug from web2py as I need to find out some errors that I do not see in IDLE. I have tried setting breakpoints, but couldn't figure out the proper way of doing it. I need to check the varia

[web2py] debugging

2012-02-09 Thread shartha
I found some older posts on how to debug using web2py.py. Such file doesn't exist in newer versions. How can you debug an application in web2py in the current version?

[web2py] Debugging in web2py

2012-02-02 Thread Web2Py Freak
Dear All , how can i use debugging in web2py are they any easy to use debugging tools ?

Re: [web2py] Debugging with uWSGI

2011-10-16 Thread Roberto De Ioris
> I want to get dubugging setup, and the main options I see are using > winpdb, pydev, or wingide. But all the examples I see are to debug the > web2py.py app when it is run and the debugger grabs the process. But I > am using the cherokee webserver with uWSGI, so how would U use it in > this way?

[web2py] Debugging : 'FA'Q or 'How To' or 'standard procedure/instructions'

2011-10-16 Thread Vineet
I searched through earlier posts reg. how to debug. But it's still not clear what's the best proc for debugging web2py apps (IDE can vary). I wish to debug through pyscripter or komodo or winpdb. A link given by massimo in following discussion (very old) is not active. http://groups.google.com/gr

[web2py] debugging : it's still not clear "How To"

2011-10-16 Thread Vineet
I searched through earlier posts reg. how to debug. But it's still not clear what's the best proc for debugging web2py apps (IDE can vary). I wish to debug throughpyscripter or komodo. This link by massimo is not active. http://groups.google.com/group/web2py/browse_thread/thread/42f9e2560fb93c1d/

[web2py] Debugging with uWSGI

2011-10-15 Thread luckysmack
I want to get dubugging setup, and the main options I see are using winpdb, pydev, or wingide. But all the examples I see are to debug the web2py.py app when it is run and the debugger grabs the process. But I am using the cherokee webserver with uWSGI, so how would U use it in this way? I want it

[web2py] Debugging RestrictedErrors

2011-08-24 Thread G
Hello, I am occasionally getting errors like the followng: Traceback (most recent call last): File "/home/dl/trunkw2p/web2py/gluon/restricted.py", line 194, in restricted exec ccode in environment File "/home/dl/trunkw2p/web2py/applications/devel/views/default/ blah.html", line 71, in

[web2py] debugging WSGI web2py python apps

2011-06-16 Thread blackthorne
I'm trying to debug a web2py app working with WSGI on webfaction. First, I've activated the Logging = True in the wsgihandler and now I can read the httpserver.log. I've also read many things on exposing request/response objects but what I really wanted would be the possibility to read print calls

[web2py] debugging help. when trying to edit a record.

2011-04-28 Thread niknok
The following model and controller works fine when adding records, but generates an error "('issuer')" when I try to edit a record. Unfortunately for me, I couldn't understand what that error actually means, or what I missed doing. Could someone give me a nudge forward? Thanks. /r Nik code is he

[web2py] Re: web2py debugging while running in gae dev server from komodo ide

2011-04-16 Thread howesc
proper diagnosis of the problem, but i do know that i have not been successful in getting a debugger to attach to a GAE dev-server spawned web2py. i like emacs and logging calls, but my coworkers would love to know of a GAE + web2py debugging solution. christian

[web2py] web2py debugging while running in gae dev server from komodo ide

2011-04-16 Thread radu margarint
Hi all, I know there's a bunch of komodo ide users here, and definitely a bunch of GAE users as well. Hoping there's some overlap that can help me with the following. If I try debugging from Komodo by running web2py.py, my breakpoints in controllers work just fine. If I try debugging from Komod by

[web2py] Debugging my app

2010-11-26 Thread Lorin Rivers
Getting pretty sick of using 'print' to debug. I tried pydbgr, but that didn't seem to work (crashed python). What other tools should I look at that will let me step through my web2py code? -- Lorin Rivers Mosasaur: Killer Technical Marketing

Re: [web2py] Debugging view template logic

2010-08-02 Thread Thadeus Burgess
The template system actually emits an error that says "Missing pass in view" or "too many pass in view". This has to do with cron / rocket failing, nothing to do with template. -- Thadeus On Mon, Aug 2, 2010 at 10:57 AM, Michael Ellis wrote: > One of my views has a number of if else clauses

[web2py] Debugging view template logic

2010-08-02 Thread Michael Ellis
One of my views has a number of if else clauses to control what the user sees depending on context. I'm finding it painfully difficult to debug because omitting a pass statement generates a not very helpful error: Traceback (most recent call last): File "/Users/mellis/w2ptip/gluon/rocket.py", l

Re: [web2py] Debugging ajax call

2010-07-28 Thread Thadeus Burgess
use firebug, set a breakpoint in the javascript and look at the current stack at that point using firebug. -- Thadeus On Wed, Jul 28, 2010 at 4:41 PM, Kenneth wrote: > Hello, > > I'm trying to make a ajax call but keep getting > document.getElementById(t) is null from row 32 in web2py_ajax.h

[web2py] Debugging ajax call

2010-07-28 Thread Kenneth
Hello, I'm trying to make a ajax call but keep getting document.getElementById(t) is null from row 32 in web2py_ajax.html. How can I debug what t is in the getElementById(t)? Kenneth

[web2py] Debugging web2py apps under winpdb

2010-07-17 Thread MikeEllis
(Note: I've cross-posted this on the winpdb group, but that group doesn't seem to have a lot of activity so I'm putting it here in case someone has already worked this out.) I recently started using winpdb to debug web2py applications. Great product! In the past I've tended break out a debugger

Re: [web2py] Debugging with GAE and Eclipse/Aptana?

2010-05-01 Thread Keith Edmunds
I don't run web2py.py under the debugger. I just put the following where I want the first breakpoint: import pydb pydb.debugger() ...which drops into the debugger when encountered. No GUI, but I believe you can hook up DDD to pydb if you are so inclined. Whether that works on GAE or not, I don't

[web2py] Debugging with GAE and Eclipse/Aptana?

2010-05-01 Thread Jonathan
Hey all, First off, let me say how much I'm loving web2py. Having dabbled a bit in different frameworks, I'm really enjoying the simplicity and elegance. One thing I'm still trying to work out is my development stack. So far, I've been using PyDev (both in Eclipse and Aptana) to do my coding. R