Is there a way to set breakpoints inside the gluon?

37 views
Skip to first unread message

David Manns

unread,
Feb 26, 2015, 9:41:55 AM2/26/15
to web...@googlegroups.com
I'm trying to build a test database using csv_import_from_file to load an entire database (I successfully use csv_export_to_file to create a file from my application running in the GAE SDK; that database was copied from GAE production using bulk upload).

However, the import process seems to run forever without terminating either successfully or with an error. I have let it run many hours.

It may be a problem with database size, ~20k entities, but I would like to track progress by breakpointing at each table start to see if there is some other problem.

I tried editing base.py to insert a breakpoint but then web2py then won't start - probably because the code is a class definition?

Using the web2py online debugger I can breakpoint at the call to csv_import_from_file and then step in to the DAL code, but is there any way to set breakpoints inside the gluon?

would be nice if one could set breakpoints on code displayed in the code window of the debugger page. or why can't the DAL modules be selected in the breakpoint screen?

Thanks for any help.

Richard Vézina

unread,
Feb 26, 2015, 11:25:38 AM2/26/15
to web2py-users
How do you import your file?

You may try to import it with web2py shell by hand you may get more insight like that.

Richard



--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages