On Friday, December 9, 2016 at 4:07:18 PM UTC, Maxie Schmidt wrote:
>
> For the sake of completeness, I'm adding a link to a SMC wiki tutorial on 
> using PUDB with Sage (for both local source installs and within the SMC 
> terminal application): 
>
> https://github.com/sagemathinc/smc/wiki/Using-a-GUI-Python-Debugger-with-Sage-(PUDB).
>  
>
>

thanks, great. I wonder where to put a link to this on wiki.sagemath.org
(the corresponding part of the wiki is horribly outdated...)

Perhaps this can be made a part of Sage doc instead?
  

>
> Maxie
>
> On Tuesday, November 29, 2016 at 6:58:09 AM UTC-6, Maxie Schmidt wrote:
>>
>> Here is the solution I eventually found to get pudb installed with Sage: 
>>
>> 1) Install libssl-dev: $ sudo apt-get install libssl-dev
>> 2) Install OpenSSL: $ sage -i openssl
>> 3) Recompile: $ sage -f python2
>> 4) Run the Sage shell: $ sage -sh
>> 5) (sage-sh) pip install --upgrade pip
>> 6) (sage-sh) pip install pudb
>>
>> Then we can finally run: $ sage -python -m pudb pudb-script.py, 
>> where my simple pudb.py script looks something like the following: 
>> import pudb; pudb.set_trace()                     
>> print "My PUDB Example ... "
>>
>> Maxie
>>
>> On Monday, November 28, 2016 at 4:32:55 PM UTC-6, mmarco wrote:
>>>
>>> If this is of any help, this is what I use:
>>>
>>> https://github.com/miguelmarco/pykdedebugger
>>>
>>> El sábado, 26 de noviembre de 2016, 8:25:02 (UTC+1), Maxie Schmidt 
>>> escribió:
>>>>
>>>> I've been looking at GUI-based (or at least text-GUI-based) python 
>>>> debuggers to help with fixing bugs in a larger python code base. I came 
>>>> across PUDB (https://pypi.python.org/pypi/pudb), which is nice and 
>>>> runs python scripts. Does anyone know of a way to get PUDB to work with 
>>>> debugging Sage scripts, or python scripts that would usually be run 
>>>> through 
>>>> Sage? Otherwise, is there a way to get these modules installed into the 
>>>> python that comes bundled with Sage? I've run into some other road blocks 
>>>> before with getting a python profiler (
>>>> https://pypi.python.org/pypi/memory_profiler) to work with my python 
>>>> scripts run through the Sage shell. 
>>>>
>>>> Thanks.
>>>>
>>>> Maxie
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to