Hi Mariano I've made your suggested changes and the debug seems to work perfectly.
Many Thanks! Shaun On Monday, December 15, 2014 8:50:00 PM UTC+2, Mariano Reingart wrote: > > Hi Shaun: > > There seems to be an issue with the latest changes in DAL (__all__ was > removed from gluon.dal). > > To fix it, in /web2py/applications/admin/controllers/debug.py you should > remove the last condition from line 75/76: > > and \ > name not in gluon.dal.__dict__: > > Anyway, this is just a cosmetic patch (as it filters the names to show in > the locals variables pane), once fixed, it should not affect normal > behavior of the debugger. > As the __all__ variable exposes the exported module names (originally > DAL, Field), it could be replaced it with __dict__, but that could be > dangerous as DAL now exports many other names that could collide with > common valid ones (base, connection, etc). > > I made a patch / PR fixing this issue in next versions: > > https://github.com/web2py/web2py/pull/559 > > Let me know if you find any other issue with the debugger, I didn't have > time to work lately, but I'm planing to revamp somethings in the next > months. > > Best regards, > > > Mariano Reingart > http://www.sistemasagiles.com.ar > http://reingart.blogspot.com > > On Mon, Dec 15, 2014 at 5:35 AM, Shaun Smith <shaun...@gmail.com > <javascript:>> wrote: >> >> Hi >> >> The Debug feature however still does not work on my *debian* system: >> >> Setting a breakpoint at line 13 of '*default.py*' of the attached ' >> *web2py.app.app2(1).w2p*' package and refreshing the application seems >> to hang. >> Opening the 'Debug' feature gives: >> Internal error, Ticket issued: >> admin/127.0.0.1.2014-12-15.10-24-04.ca400024-1983-4af8-a9e9-952ac27c58e9 >> <http://127.0.0.1:8000/admin/default/ticket/admin/127.0.0.1.2014-12-15.10-24-04.ca400024-1983-4af8-a9e9-952ac27c58e9> >> . >> >> Clicking on the ticket gives >> Error ticket for "admin", and >> <type 'exceptions.AttributeError'> 'module' object has no attribute >> '__all__' >> >> as per the attached 'debug_ticket.html'. >> Please advise how I could resolve this issue. >> >> Kind Regards >> Shaun >> >> On Friday, December 12, 2014 11:06:04 AM UTC+2, Shaun Smith wrote: >> >>> Hi >>> >>> I am a new user to web2py and am trying to use the debug feature. I have >>> attached the 'app1' application package ('web2py.app.app1w2p). When I run >>> it it runs as expected. >>> >>> However the action of setting a breakpoint in line 11 of "*default.py*" >>> gives the response >>> "[14968:14968:1212/105253:ERROR:CONSOLE(248)] "Uncaught TypeError: >>> undefined is not a function", source: https://apis.google.com/_/scs/ >>> abc-static/_/js/k=gapi.gapi.en.mDMl48C7FR8.O/m=iframes, >>> googleapis_client/rt=j/d=1/rs=AItRSTOveVmyqj7FQViAq5Q-ZAhF4tZ22g (248)" >>> in my *Debian* terminal and my application seems to hang. >>> >>> When I click on the *Debug* option I get the response '*Internal error*', >>> Ticket issued: admin/127.0.0.1.2014-12-12.10- >>> 56-26.75180abc-a962-4c49-a76b-1e4a59892fe8 >>> <http://127.0.0.1:8000/admin/default/ticket/admin/127.0.0.1.2014-12-12.10-56-26.75180abc-a962-4c49-a76b-1e4a59892fe8>. >>> >>> Clicking on this ticket link gives >>> *Error ticket for "admin"*, <type 'exceptions.AttributeError'> 'module' >>> object has no attribute '__all__', (accompanying ticket information file >>> 'ticket_admin.html'). >>> >>> Can anyone perhaps advise how I can resolve this problem? >>> >>> Kind Regards >>> Shaun >>> >>> >>> >>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.