Re: [web2py] Re: Simple debugger

2010-12-14 Thread Branko Vukelic
On Tue, Dec 14, 2010 at 6:32 AM, weheh richard_gor...@verizon.net wrote:
 I want to go to Eclipse but didn't succeed in getting it to install 
 run the first time through.

Have you tried NetBeans? It's goot support for Python (still beta),
and it wasn't so bad the last time I tried. Although I now use Vim
with RopeVim, and I can't say I need anything better.

-- 
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


Re: [web2py] Re: Simple debugger

2010-12-14 Thread Lorin Rivers
I couldn't get NetBeans to debug my web2py code. On a Mac.

Eclipse was a challenge to get set up and in one case, where I had some oddly 
broken code, the breakpoints didn't work how I expected them to. I had to step 
into EVERYTHING, down into the bowels of web2py, which was a real pain. I 
expect that if I have a BP at the beginning of a function and another inside 
that function that I should be able to resume and have it break again at the 
second BP, but that was not reliable for me.

Very frustrating.

I'm going to try ipdb.

On Dec 13, 2010, at 23:32 , weheh wrote:

 I want to go to Eclipse but didn't succeed in getting it to install 
 run the first time through.
 
 On Dec 14, 12:13 am, Branko Vukelic bg.bra...@gmail.com wrote:
 On Tue, Dec 14, 2010 at 5:45 AM, Bruno Rocha rochacbr...@gmail.com wrote:
 Someone else has any debug tip or advice for sharing?
 
 I used this:http://pypi.python.org/pypi/ipdb
 
 All the IPython goodness + pdb-style debugging. You get auto-complete
 and command history, too. ;)
 
 --
 Branko Vukelić
 
 bg.bra...@gmail.com
 stu...@brankovukelic.com
 
 Check out my blog:http://www.brankovukelic.com/
 Check out my portfolio:http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca:http://identi.ca/foxbunny
 
 Gimp Brushmakers Guildhttp://bit.ly/gbg-group

-- 
Lorin Rivers
Mosasaur: Killer Technical Marketing http://www.mosasaur.com
mailto:lriv...@mosasaur.com
512/203.3198 (m)




Re: [web2py] Re: Simple debugger

2010-12-14 Thread Thadeus Burgess
The problem with web2py is the built in internal server. Since it executes
itself on a completely separate thread, there is no way (that I know
currently) to connect a debugger to it.

I have ran into this problem with all of the python frameworks I have tried
(Django, Flask, Pylons, web2py) all suffer from not being able to step
through your code in a debugger.

--
Thadeus




On Tue, Dec 14, 2010 at 1:21 PM, Lorin Rivers lriv...@mosasaur.com wrote:

 I couldn't get NetBeans to debug my web2py code. On a Mac.

 Eclipse was a challenge to get set up and in one case, where I had some
 oddly broken code, the breakpoints didn't work how I expected them to. I had
 to step into EVERYTHING, down into the bowels of web2py, which was a real
 pain. I expect that if I have a BP at the beginning of a function and
 another inside that function that I should be able to resume and have it
 break again at the second BP, but that was not reliable for me.

 Very frustrating.

 I'm going to try ipdb.

 On Dec 13, 2010, at 23:32 , weheh wrote:

  I want to go to Eclipse but didn't succeed in getting it to install 
  run the first time through.
 
  On Dec 14, 12:13 am, Branko Vukelic bg.bra...@gmail.com wrote:
  On Tue, Dec 14, 2010 at 5:45 AM, Bruno Rocha rochacbr...@gmail.com
 wrote:
  Someone else has any debug tip or advice for sharing?
 
  I used this:http://pypi.python.org/pypi/ipdb
 
  All the IPython goodness + pdb-style debugging. You get auto-complete
  and command history, too. ;)
 
  --
  Branko Vukelić
 
  bg.bra...@gmail.com
  stu...@brankovukelic.com
 
  Check out my blog:http://www.brankovukelic.com/
  Check out my portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny
 
  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

 --
 Lorin Rivers
 Mosasaur: Killer Technical Marketing http://www.mosasaur.com
 mailto:lriv...@mosasaur.com
 512/203.3198 (m)





Re: [web2py] Re: Simple debugger

2010-12-14 Thread Bruno Rocha
I have debug running well in eclipse, with step through, but I dont like to
use an IDE.

2010/12/14 Thadeus Burgess thade...@thadeusb.com

 The problem with web2py is the built in internal server. Since it executes
 itself on a completely separate thread, there is no way (that I know
 currently) to connect a debugger to it.

 I have ran into this problem with all of the python frameworks I have tried
 (Django, Flask, Pylons, web2py) all suffer from not being able to step
 through your code in a debugger.

 --
 Thadeus





 On Tue, Dec 14, 2010 at 1:21 PM, Lorin Rivers lriv...@mosasaur.comwrote:

 I couldn't get NetBeans to debug my web2py code. On a Mac.

 Eclipse was a challenge to get set up and in one case, where I had some
 oddly broken code, the breakpoints didn't work how I expected them to. I had
 to step into EVERYTHING, down into the bowels of web2py, which was a real
 pain. I expect that if I have a BP at the beginning of a function and
 another inside that function that I should be able to resume and have it
 break again at the second BP, but that was not reliable for me.

 Very frustrating.

 I'm going to try ipdb.

 On Dec 13, 2010, at 23:32 , weheh wrote:

  I want to go to Eclipse but didn't succeed in getting it to install 
  run the first time through.
 
  On Dec 14, 12:13 am, Branko Vukelic bg.bra...@gmail.com wrote:
  On Tue, Dec 14, 2010 at 5:45 AM, Bruno Rocha rochacbr...@gmail.com
 wrote:
  Someone else has any debug tip or advice for sharing?
 
  I used this:http://pypi.python.org/pypi/ipdb
 
  All the IPython goodness + pdb-style debugging. You get auto-complete
  and command history, too. ;)
 
  --
  Branko Vukelić
 
  bg.bra...@gmail.com
  stu...@brankovukelic.com
 
  Check out my blog:http://www.brankovukelic.com/
  Check out my portfolio:http://www.flickr.com/photos/foxbunny/
  Registered Linux user #438078 (http://counter.li.org/)
  I hang out on identi.ca:http://identi.ca/foxbunny
 
  Gimp Brushmakers Guildhttp://bit.ly/gbg-group

 --
 Lorin Rivers
 Mosasaur: Killer Technical Marketing http://www.mosasaur.com
 mailto:lriv...@mosasaur.com
 512/203.3198 (m)






-- 

Bruno Rocha
http://about.me/rochacbruno/bio


Re: [web2py] Re: Simple debugger

2010-12-14 Thread ron_m
winpdb (free and nothing to do with Windows) is a Python debugger that is 
multi-thread capable,


Re: [web2py] Re: Simple debugger

2010-12-14 Thread Phyo Arkar
i debug all the time using eclipse , and it can handle threads well ,
what is the problem??

For easiest eclipse setup for python and web development , use Aptana
, it can get Aptana PyDev  plugin directly after installed (just a few
click from plugin-manager).

www.aptana.com

To setup debug for python , it can be easily done by installing
hgclipse plugin and cloning web2py repo into you, and run web2py from
there. Debug 100% works fine, Auto completion 100% fine.

mr.freeze have a slice on it for full detail (how to setup pydev for
web2py(debug))



On 12/15/10, ron_m ron.mco...@gmail.com wrote:
 winpdb (free and nothing to do with Windows) is a Python debugger that is
 multi-thread capable,



Re: [web2py] Re: Simple debugger

2010-12-14 Thread Branko Vukelic
I absolutely prefer ipdb for debugging and Vim for editing. The combo
is unbeatable. :)

Try splitting the buffer in Netbeans or Aptana. In Vim, it's just
``:split``. :) I love this editor. 3

-- 
Branko Vukelić

bg.bra...@gmail.com
stu...@brankovukelic.com

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group


[web2py] Re: Simple debugger

2010-12-13 Thread weheh
I want to go to Eclipse but didn't succeed in getting it to install 
run the first time through.

On Dec 14, 12:13 am, Branko Vukelic bg.bra...@gmail.com wrote:
 On Tue, Dec 14, 2010 at 5:45 AM, Bruno Rocha rochacbr...@gmail.com wrote:
  Someone else has any debug tip or advice for sharing?

 I used this:http://pypi.python.org/pypi/ipdb

 All the IPython goodness + pdb-style debugging. You get auto-complete
 and command history, too. ;)

 --
 Branko Vukelić

 bg.bra...@gmail.com
 stu...@brankovukelic.com

 Check out my blog:http://www.brankovukelic.com/
 Check out my portfolio:http://www.flickr.com/photos/foxbunny/
 Registered Linux user #438078 (http://counter.li.org/)
 I hang out on identi.ca:http://identi.ca/foxbunny

 Gimp Brushmakers Guildhttp://bit.ly/gbg-group