For Windows I needed to change some things:

But this has way too much output so it is better to filter out all the 
> standard python library calls. Do that by running this command to get this 
> list of directories to ignore:
>
> python -c 'import sys ; print(":".join(sys.path)[1:])'
>
>
reverse the inner and outer quotes, so:

python -c "import sys ; print(':'.join(sys.path)[1:])"



And run your trace command like this:
>
> python -m trace --trace --ignore-dir <output from above command> 
> <thescript>
>
>
> This requries <thescript> to be located outside your standard library 
> paths (i.e. installed with pip), otherwise the execution trace of that code 
> will be excluded as well.
>
>
> On Mon, Aug 12, 2019 at 6:03 AM Edward K. Ream <[email protected] 
> <javascript:>> wrote:
>
>> On Sun, Aug 11, 2019 at 7:29 PM Matt Wilkie <[email protected] 
>> <javascript:>> wrote:
>>
>> I figured I'd buckle down and learn how to use a debugger properly like 
>>> the Smart Kids Do. 
>>>
>>
>> Insert calls to g.pdb().  This will start Python's pdb debugger 
>> <https://docs.python.org/3/library/pdb.html>. You must be running Leo 
>> from a console.
>>
>> When you hit a breakpoint, hit "n" once to move out of the Leo code and 
>> into the code you want to see.
>>
>> If "g" isn't available, then start the debugger using:
>>
>> import pdb ; pdb.set_trace()
>>
>> Imo, there is seldom a need for anything other than pdb.  Guido has said 
>> that's what he uses.
>>
>> Edward
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "leo-editor" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/leo-editor/CAMF8tS0AvV5nUw3Q9-4iEW_c2tRaCVsvkRFRb8azO%3DOZ5cw%2BrQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/leo-editor/CAMF8tS0AvV5nUw3Q9-4iEW_c2tRaCVsvkRFRb8azO%3DOZ5cw%2BrQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" 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/leo-editor/9ffa4b89-4ca9-46f0-b46c-a54e0cc3f5d8%40googlegroups.com.

Reply via email to