GoogleCloudPlatform / webapp2

webapp2 is a framework for Google App Engine
https://webapp2.readthedocs.org
Other
142 stars 64 forks source link

ipdb support for webapp2 #121

Closed kishan3 closed 7 years ago

kishan3 commented 7 years ago

Hi guys I am coming django background I am unable to get into debugging mode as we do in django and flask.

I have installed ipdb using pip but my webapp2 application says ImportError: No module named ipdb .

I have also tried taking the app inside virtualenv (although its not necessary I guess ) still it doesn't work.

mymtw commented 7 years ago

I didn't use ipdb, but pudb worked for me. Can you install it and put this into your codeimport pudb;pudb.set_trace()? Will it work?

theacodes commented 7 years ago

@kishan3 are you using App Engine? It's quite possible that app engine is preventing using ipdb. Can you try using regular pdb?

kishan3 commented 7 years ago

@jon yes i tried pdb and it works. But as you know ipdb is much better. Any idea why ipdb is not supported ? I would like to contribute for this requirement.

theacodes commented 7 years ago

I don't think webapp2 specifically is stopping you from using ipdb. Are you using app engine?

On Mon, Nov 7, 2016, 7:48 PM kishan notifications@github.com wrote:

@jon https://github.com/jon yes i tried pdb and it works. But as you know ipdb is much better. Any idea why ipdb is not supported ? I would like to contribute for this requirement.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/webapp2/issues/121#issuecomment-259038321, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPUc1Yt5FRjY_UZHAc57xnvKjR95TXhks5q7_D2gaJpZM4Kq6c5 .

kishan3 commented 7 years ago

Yes i am using app engine. I get the error ImportError : No module named termios . I googled about it but termios issue is related to windows OS it seems. I use ubuntu.

mymtw commented 7 years ago

this is not windows related issue. gae trying to hide stdlib libraries. Issue not related with web framework. I would like to contribute for this requirement. Im afraid that they will not implement this

kishan3 commented 7 years ago

@mymtwcom any links to solve this specifically for Linux?

theacodes commented 7 years ago

Unfortunately there's nothing we can do in this library to get ipdb to work in app engine. There's an issue on App Engine, I suggest starring it to let them know that this is a desired feature.

I'm closing this issue for now, but feel free to continue to discuss.