Marcus, yes it's very similar to the tools you have for debugging in visual
studio. And it's just as useful for developing externally to Maya, you can
run your code directly from pycharm or Python Tools for VS in debug mode.

Another neat thing about pycharm that I don't think sublime has is that you
can specify the datatype for arguments and return-type in the docstring or
with one-line comments in instances where it can't figure out the type
itself. It enhances the code completion quite a bit. Sorry for sounding
like a salesman :p

I've never used pdb directly but that looks interesting.
On May 8, 2014 1:14 AM, "Justin Israel" <[email protected]> wrote:

> I think I played with this once for a couple hours:
> https://pypi.python.org/pypi/PdbSublimeTextSupport
>
> It was kinda neat since it would bring up and control the sublime session
> as the viewer while you are stepping around the code.
>
>
>
>
> On Thu, May 8, 2014 at 10:32 AM, Tony Barbieri <[email protected]> wrote:
>
>> My time debugging usage in python is much the same as Justin's.  I've
>> used pdb when trying to track down GC issues when using compiled python
>> modules.  The biggest offender has been PySide/Qt.  pdb and some of the
>> other debugging modules out there have been life savers when trying to
>> determine why the memory count on a long living python process continued to
>> climb over time.  I didn't use them built into an IDE though, I just used
>> them via the command line.  I'd be surprised if SublimeText doesn't have an
>> extension you could use.
>>
>>
>> On Wed, May 7, 2014 at 6:12 PM, Marcus Ottosson 
>> <[email protected]>wrote:
>>
>>> Interesting, that sounds similar to tools within visual studio for c++,
>>> but do you think that it could also be useful outside of Maya? I'm writing
>>> for Maya too, but can't remember the last time I actually coded in the Maya
>>> interpreter. It's variable persistance is simply too much of a headache.
>>>
>>>
>>> On Wednesday, May 7, 2014, Nils Lerin <[email protected]> wrote:
>>>
>>>>  I've become so spoiled with debugging now that I think I would miss
>>>> it alot if I switched IDE to one that doesn't have it. Especially when
>>>> developing bigger tools. In pycharm you can connect to maya and set
>>>> breakpoints, when it's hit you can see the entire stack trace and what data
>>>> is in every variable and then step through the code. You can also execute
>>>> functions at that point and return the result given the current state. I've
>>>> had some problems with Pycharm 3 though and I just switched from 'Python
>>>> Tools for Visual studio' that I think does this even better however it
>>>> lacks some other features that pycharm has.
>>>>
>>>>
>>>> On Wed, May 7, 2014 at 9:47 PM, Marcus Ottosson <[email protected]
>>>> > wrote:
>>>>
>>>>> Oo, how do you mean debugging? Am I missing out on something? :O The
>>>>> only debugging going on here are print statements and logging.
>>>>>
>>>>> ps. I just realised this thread is about 2 years old. :)
>>>>>
>>>>>
>>>>> On 7 May 2014 20:13, Nils Lerin <[email protected]> wrote:
>>>>>
>>>>> Pycharm is also very nice and I belive free for personal use nowadays.
>>>>> Marcus, have you been able to set up debugging in sublime?
>>>>> On May 7, 2014 11:17 AM, "Marcus Ottosson" <[email protected]>
>>>>> wrote:
>>>>>
>>>>> Completely off-topic, but in the off chance that you aren't aware, all
>>>>> the cool kids use Sublime Text these days. :) If you are, I'd be 
>>>>> interested
>>>>> in the benefits you see in using Vim over Sublime; besides taste, which is
>>>>> perfectly valid.
>>>>>
>>>>>
>>>>> On 7 May 2014 09:18, <[email protected]> wrote:
>>>>>
>>>>> > I still don't understand how you can get pymel autocompletion in
>>>>> vim. I can't find anything on the subject on the web. I didn't quite get
>>>>> how to use the skeleton maya package to make it work...
>>>>> > If you have a more complete explanation it would be nice
>>>>>
>>>>> This troubled me for a while. It turned out that vim ignored the
>>>>> PYTHONPATH variable that i had set from the bash terminal. I got it 
>>>>> working
>>>>> by appending the path inside my .vimrc like this:
>>>>>
>>>>> " maya.cmds
>>>>> :python import sys
>>>>> :python sys.path.append(
>>>>> "/usr/autodesk/maya2014-x64/devkit/other/pymel/extras/completion/py" )
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/d19ec0dd-ff14-427d-a165-1c66b9752676%40googlegroups.com
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Marcus Ottosson*
>>>>> [email protected]
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>  To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCs%2BB%2BKKu2i3rO1ZeW4f6Cs4FwnZVo%3DDDUXR6huK9zVwg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCs%2BB%2BKKu2i3rO1ZeW4f6Cs4FwnZVo%3DDDUXR6huK9zVwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Python Programming for Autodesk Maya" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to
>>>>>
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODsfZ-h-3hgbZEtBtQJo8VDPxPWV-%2BamLsjwhpM-hx_YQ%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODsfZ-h-3hgbZEtBtQJo8VDPxPWV-%2BamLsjwhpM-hx_YQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Python Programming for Autodesk Maya" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFdSoS%2B99tiT-X9Fz%2ByersAWJknUuY3NvnefejZkv29MKQ%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFdSoS%2B99tiT-X9Fz%2ByersAWJknUuY3NvnefejZkv29MKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>> --
>>> *Marcus Ottosson*
>>> [email protected]
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>  To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBFs8frLC4xoVn7P1RAPUmX85EN5n6_JFYj_rt7SDmnKg%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBFs8frLC4xoVn7P1RAPUmX85EN5n6_JFYj_rt7SDmnKg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> -tony
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>  To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsQwTWtyMxRzpz%2BV08170msSFbjhUn6vL2s8L-YaKaBZrw%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsQwTWtyMxRzpz%2BV08170msSFbjhUn6vL2s8L-YaKaBZrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2oEv73HTOmgxB%2BQrTh6WmLup4PYaQv_5-ojh-GGaZq7Q%40mail.gmail.com<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2oEv73HTOmgxB%2BQrTh6WmLup4PYaQv_5-ojh-GGaZq7Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAGkBUFfsuW1x0PWMK2G0hP7nu3sbtXiZ%3DvjtiqUqOTO3wX7hSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to