Hi, I like the Flask framework as it is pretty neat and provide all I need to build web_apps. I have one problem. I use pydev in eclipse to do my devs and from time to time instead of logging message to find my bugs I would like to fire pdb and directly see the state of my program. When I do that it doesn't seem to work ? Is there a way to do that ? many thanks, Guillaume
Do you really need all the features pdb provides? Usually the werkzeug debugger you see when your applications fails with an exception is enough.
Having an integrated debugger in your IDE that you can trigger at will is very convenient and help you quickly fixing lots of silly bugs. I could do without it but it makes the development process a bitter more tedious. For example I developed a RESTful interface with Flask. How do I test POST or DELETE commands with a browser to use the werkzeug debugger ? I have a test suite and command-line tools with curl that I would like to use in my testing phase. What I would like to do is start the debugger on the sever-side and start my http requests and then debug from there. Is there a way to plug pdb or another debugger on the server ? Many thanks. On Thu, Jan 20, 2011 at 10:57 AM, DasIch <dasdasich@googlemail.com> wrote: > Do you really need all the features pdb provides? Usually the werkzeug > debugger you see when your applications fails with an exception is > enough. >
On 20 January 2011 13:59, Guillaume Aubert <guillaume.aubert@gmail.com> wrote: > Having an integrated debugger in your IDE that you can trigger at will > is very convenient and help you quickly fixing lots of silly bugs. > I could do without it but it makes the development process a bitter > more tedious. > For example I developed a RESTful interface with Flask. > How do I test POST or DELETE commands with a browser to use the > werkzeug debugger ? Aren't you using the app.test_client()? > I have a test suite and command-line tools with curl that I would like > to use in my testing phase. > > What I would like to do is start the debugger on the sever-side and > start my http requests and then debug from there. > Is there a way to plug pdb or another debugger on the server ? > > Many thanks. > > On Thu, Jan 20, 2011 at 10:57 AM, DasIch <dasdasich@googlemail.com> wrote: >> Do you really need all the features pdb provides? Usually the werkzeug >> debugger you see when your applications fails with an exception is >> enough. >> >
Hi, I am not always using app.test_client() because I would like to test my real clients as well. I adopted the 2 cents solution of Nick Martin. It should do the tricks for the moment: When I have a problem that needs the debugger I add the pdb lines in the code and debug. A real integration with pydev would be great and I will try to have a look at it because they also use pdb behind the seen. Thanks for your help. Cheers Guillaume On Sun, Jan 23, 2011 at 12:53 AM, dag.odenhall@gmail.com <dag.odenhall@gmail.com> wrote: > On 20 January 2011 13:59, Guillaume Aubert <guillaume.aubert@gmail.com> wrote: >> Having an integrated debugger in your IDE that you can trigger at will >> is very convenient and help you quickly fixing lots of silly bugs. >> I could do without it but it makes the development process a bitter >> more tedious. >> For example I developed a RESTful interface with Flask. >> How do I test POST or DELETE commands with a browser to use the >> werkzeug debugger ? > > Aren't you using the app.test_client()? > >> I have a test suite and command-line tools with curl that I would like >> to use in my testing phase. >> >> What I would like to do is start the debugger on the sever-side and >> start my http requests and then debug from there. >> Is there a way to plug pdb or another debugger on the server ? >> >> Many thanks. >> >> On Thu, Jan 20, 2011 at 10:57 AM, DasIch <dasdasich@googlemail.com> wrote: >>> Do you really need all the features pdb provides? Usually the werkzeug >>> debugger you see when your applications fails with an exception is >>> enough. >>> >> >
Just my 2 cents, but for me I find it quite useful to insert a quick, 'import pdb; pdb.set_trace()' if I need to debug a method etc. The interactive debugger in werkzueg is also very handy. Cheers Nick On 20 Jan 2011, at 12:59, Guillaume Aubert wrote: > Having an integrated debugger in your IDE that you can trigger at will > is very convenient and help you quickly fixing lots of silly bugs. > I could do without it but it makes the development process a bitter > more tedious. > For example I developed a RESTful interface with Flask. > How do I test POST or DELETE commands with a browser to use the > werkzeug debugger ? > I have a test suite and command-line tools with curl that I would like > to use in my testing phase. > > What I would like to do is start the debugger on the sever-side and > start my http requests and then debug from there. > Is there a way to plug pdb or another debugger on the server ? > > Many thanks. > > On Thu, Jan 20, 2011 at 10:57 AM, DasIch <dasdasich@googlemail.com> wrote: >> Do you really need all the features pdb provides? Usually the werkzeug >> debugger you see when your applications fails with an exception is >> enough. >>
I think it should be possible to integrate with pydev... but how? -- Thadeus On Thu, Jan 20, 2011 at 7:03 AM, Nick Martin <iamntmartin@googlemail.com>wrote: > Just my 2 cents, but for me I find it quite useful to insert a quick, > 'import pdb; pdb.set_trace()' if I need to debug a method etc. > The interactive debugger in werkzueg is also very handy. > > Cheers > > Nick > > On 20 Jan 2011, at 12:59, Guillaume Aubert wrote: > > > Having an integrated debugger in your IDE that you can trigger at will > > is very convenient and help you quickly fixing lots of silly bugs. > > I could do without it but it makes the development process a bitter > > more tedious. > > For example I developed a RESTful interface with Flask. > > How do I test POST or DELETE commands with a browser to use the > > werkzeug debugger ? > > I have a test suite and command-line tools with curl that I would like > > to use in my testing phase. > > > > What I would like to do is start the debugger on the sever-side and > > start my http requests and then debug from there. > > Is there a way to plug pdb or another debugger on the server ? > > > > Many thanks. > > > > On Thu, Jan 20, 2011 at 10:57 AM, DasIch <dasdasich@googlemail.com> > wrote: > >> Do you really need all the features pdb provides? Usually the werkzeug > >> debugger you see when your applications fails with an exception is > >> enough. > >> > >