Benutzer-Werkzeuge

Webseiten-Werkzeuge


python_basics

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
python_basics [2019/12/01 20:43] – [debugging python] 192.168.1.100python_basics [2022/01/09 14:41] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 2: Zeile 2:
  
  
-===== debugging python =====+===== debug python ===== 
 + 
 +linux 
 +==== idle ==== 
 +  
 +idle [[https://en.wikipedia.org/wiki/IDLE]] 
 +==== PUDB debug==== 
 + 
 +  * Doku [[https://documen.tician.de/pudb/]] 
 +  * Install pudb debug 
 +  * <code> sudo pip install pudb </code> 
 + 
 +  * identity tty ID: <code> tty </code> 
 +  * call <code> PUDB_TTY=/dev/pts/0 pudb sensor.py </code> 
 +  * batch file 
 +  * <code> 
 +       pudebug 
 +       PUBTTY=`tty` echo "puDB- start in dir with source files" 
 +       echo "Call with name of file to be debugged" 
 +       echo "Call in window used for debugging" 
 +       PUDB_TTY=`tty`  pudb $1 </code>
  
-linux  
-  * idle [[https://en.wikipedia.org/wiki/IDLE]] 
-  * pudb 
  
 <code> <code>
 puDB commands puDB commands
 +n – step over (“next”)
 +s – step into
 +c – continue
 +r/f – finish current function
 +t – run to cursor
 +o – show console/output screen
 +b – toggle breakpoint
 +m – open module
 +! – Jump into interactive shell (most useful)
 +/ – text search
 </code> </code>
  
python_basics.1575229403.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki