Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
2010å¹´01æ14æ¥10:45 ã«ãã´ãªperlPlack Plack::Middleware::Debug Panel ä½æã«å ¥éãã¦ã¿ã¾ãã ãã ã¤æ¥ã ãç¶ãã¦ãã¾ããããã£ã§ããããããéããã§ãããããæ¨æ¥ç¾å®éé¿ãã¦ããPlack::Middleware::Debugãã®ããã«ä½æã«å ¥éãã¦ã¿ã¾ããã®ã§ Open & Share ãããã¨æãã¾ãã TemplateToolkitå ã§ã®å¤æ°ã表示ãã TTããã« å¼ç¤¾ã§ã¯ãããã°ã©ãã¼ã¨HTMLã®ãã¼ã¯ã¢ããã¯åæ¥ããã¦ãã¾ããããã§ããã¼ã¯ã¢ããã®æ¹ããã©ãããå¤æ°ãå©ç¨ã§ãããä¸ç®ã§åããã°ä¾¿å©ã«éããªãã¨ããå¦æ³ãæµ®ãã³ã¾ããã®ã§å®è£ ãã¦ã¿ã¾ããããä¸ã¿ãããªæãã§ãã WikiR::WAF::Middleware::Debug::TT TTããã«ã§ããpolocky.stash_keys ã¨ããç°å¢å¤æ°ãããã¼åãåå¾ã
Railsã§ã®éçºããã¦ããã¨ãããã©ã¦ã¶ã¯ä½ã使ã£ã¦ã¾ããï¼ ç§ã¯Firebugã使ãããã®ã§Firefoxãã¡ã¤ã³ã§ããããæè¿ã¯GoogleChromeãå¤ãã§ãã GoogleChromeã«ããã£ããããã¼ãã¼ã«ã¨ããã®ãããããã©ã¦ã¶ã¨ãµã¼ãéã®éä¿¡å 容ãåãã¡ã¤ã«ã®ãã¼ãã«æãã£ãæéãªã©ãè¦ããã¨ãã§ãã¾ãã ã©ã¡ãã®éçºè åããã¼ã«ã§ããJavascriptã®ã½ã¼ã¹ã«ãã¬ã¤ã¯ãã¤ã³ããè¨ç½®ãããã®æã®å¤æ°ã®ä¸èº«ãè¦ããã¨ãªã©ãã§ãã¾ãããããã®ãã¼ã«ããªãã¨ä»äºã«ãªããªããããã§ãã ã§ã¯ããµã¼ãå´ã¯ï¼ ã¨ãããã¨ã§ãRails3ã§ãã¤Ruby1.9.xã®å ´åã§ã®ãããã°æ¹æ³ã«ã¤ãã¦ã§ãã ã§ã¯ããã£ãã æºåããæé ï¼ãGemfileã«è¿½è¨ gem "ruby-debug19" ï¼ããbundle installããè¡ã ï¼ãã½ã¼ã¹ã®æ¢ãããå ´æã«ãdebuggerãã¨
Macã§Railsãéçºä¸ã®ã¿ãªããPowã使ã£ã¦ãã¾ããï¼ç§ã使ãå§ãã¦ã¨ã¦ã便å©ã«ä½¿ã£ã¦ãã¾ãããããããã®ã¾ã¾å©ç¨ãã¦ããã¨ã¡ãã£ã¨å¼ã£ãããé¨åãããã¤ãããã¾ãã http://pow.cx/ .rvmrc bundlerãå©ç¨ã§ããªãå ´åãªã©ã«ãRVMãå©ç¨ãããå ´åãããã¨æãã¾ãããã®éã«ã.rvmrcã以ä¸ã®ããã«ããã¸ã§ã¯ãã«ã¼ãã«å ¥ãã¦ããã°ãã®ãã¡ã¤ã«ãèªã¿è¾¼ãã§RVMãå©ç¨ãã¦èµ·åãããã¨ãã§ãã¾ãã rvm ruby-1.8.7-p334@youroom .powenv Herokuã¨ä¸ç·ã«ä½¿ãå ´åã¯ããENVãå©ç¨ãã¦ãè¨å®é ç®ãæä½ãã¾ãããã®éã«ã.powenv以ä¸ã®ããã«ãããã¸ã§ã¯ãã®ã«ã¼ãã«å ¥ãã¦ããã°ãã®ãã¡ã¤ã«ãèªã¿è¾¼ãã§ENV(ç°å¢å¤æ°)ãè¨å®ãã¦èµ·åã§ãã¾ãã export AMAZON_ACCESS_KEY="XXXXXXXXX" expo
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
pythonã¨ããããèªåç¨ã«ããã¨ã§ã¡ããã¨ã¾ã¨ãç´ã...ãããã³ãã³ãh(elp) [command]ã³ãã³ãã®ãã«ãã表示å¼æ°ãªãã§å©ç¨å¯è½ã³ãã³ãä¸è¦§ã表示s(tep)ä¸è¡å®è¡(ã¹ãããã¤ã³)n(ext)ä¸è¡å®è¡(ã¹ããããªã¼ãã¼)unt(il)(Python2.6ãã)è¡çªå·ãç¾å¨è¡ãã大ãããªãããç¾å¨ã®ãã¬ã¼ã ããæ»ãã¾ã§å®è¡r(eturn)returnãããã¾ã§å®è¡(ã¹ãããã¢ã¦ã)c(ontinue)次ã®ãã¬ã¼ã¯ãã¤ã³ãã¾ã§å®è¡j(ump) lineno次ã«å®è¡ããè¡ãæå®æãåºã®ãã¬ã¼ã ã§ã®ã¿å®è¡å¯è½forãfinallyãªã©ã®ä¸ã«ã¯é£ã³è¾¼ããªãl(list) [first[, lastã½ã¼ã¹ã³ã¼ãã表示å¼æ°ãªã åå¾11è¡å¼æ°ä¸ã¤ ãã®è¡ãã11è¡å¼æ°äºã¤ ä¸ããããç¯å²è¡a(rgs)ç¾å¨ã®é¢æ°ã®å¼æ°ãªã¹ããããªã³ãp expressionç¾å¨ã®ã³ã³ããã¹ãã§exp
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}