Djangoããã«ã½ã³ã®ãã³ãºãªã³ã§ã好è©ã ã£ãPythonã®pdbã 使ãæ¹ã¯ããããããã¿ããã ãã©ãã¨ãããã set_trace ã¯ä¾¿å©ãªã®ã§ããã«ã§ã使ã£ã¦ã¿ãã¹ãã hello-pdb.py def say_hello(): msg = 'hello world' import pdb pdb.set_trace() print msg if __name__ == '__main__': say_hello() ããã§å®è¡ãã㨠pdb.set_trace() ã§ãããã°ç¨ã®å¯¾è©±ã·ã§ã«ãå®è¡ãããã P:\Python\_sample\hello_pbd>python hello-pdb.py > p:\python\_sample\hello_pbd\hello-pdb.py(7)say_hello() -> print msg (Pdb) msg 'hello world
{{#tags}}- {{label}}
{{/tags}}