Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
JavaScript ã®ãããã¬ã便å©ã§ããããã¤ãã£ã¦ãã¾ããã! Chrome, Firefox 両æ¹ã® Developer Tool (Web Inspector) ã«ã¯ JavaScript ãããã¬ãä»å±ãã¦ãã¾ãã両è ã«ã¯ Event Listener Breakpoints æ©è½ãåå¨ããç¹å®ã¤ãã³ãã®ãªã¹ãå ¨é¨ã«ãã¬ã¼ã¯ãã¤ã³ããä»æããäºãå¯è½ã§ãã ããããjQuery ã® $.on, $.bind, ãã®ä» $.click(fn) çã§ã¤ãã³ããã³ãã©ãå®ç¾©ãã㨠jQuery ã®ä¸ã§ addEventListeners ãå¼ã°ãå é¨ã§å¦çãããå¾ã«å®éã« jQuery ã«æ¸¡ããé¢æ°ãå¼ã°ãã¾ãã ãã®ãããJavaScript ãããã¬ã¯ jQuery å é¨ã§ãã¬ã¼ã¯ãæ¬æ¥é£ãã§ã»ããã¯ãã®é¢æ°ã«ä¸çºã§é£ãã§ããã¾ããã ãã㧠Firefox ã«ã¯ Library
俺å¾ã¡ã¢ããã3åãããåããã¨èª¿ã¹ããã§ããå æ¸ã¡ã¢æ®ãã¦ããã Net::HTTP ã«set_debug_outputã£ã¦ã¡ã½ããããã£ã¦ã³ã¤ãã«åºåå ã渡ãã°ãããæ®å¿µãªãããã®set_debug_outputã¯ããã¥ã¡ã³ãã«ã¯è¼ã£ã¦ãªãã®ã§net/httpã®ã½ã¼ã¹è¦ã¦ãã require 'net/http' Net::HTTP.version_1_2 http = Net::HTTP.new("d.hatena.ne.jp", 80) http.set_debug_output $stderr http.start{|http| req = Net::HTTP::Get.new('/yuroyoro') res = http.request(req) print res.body } irbã§ãã㨠irb(main):001:0> require 'net/http' => t
Elasticsearchã«ç»é²ããã¦ããã¤ã³ããã¯ã¹ã調ã¹ãããªã£ã¦ãã¼ã«ãæ¢ããçµæãelasticsearch-inquisitorã¨ããpluginãè¦ã¤ãã¾ããã ã¤ã³ã¹ãã¼ã«ããã«ã¯Elasticsearchã®ãã£ã¬ã¯ããªã«ãã bin/plugin ã³ãã³ãã使ãã ãã§ããHomebrewçµç±ã§ã¤ã³ã¹ãã¼ã«å ´åã¯/usr/local/Celler/elasticsearch/0.90.2/bin/pluginã¨ãã«ããããã¯ãã§ãã
Shin x blog Advent Calendar 2013 ã® 21 æ¥ç®ã§ãã 第 12 åé¢è¥¿ PHP åå¼·ä¼ ã«ã¦ãPHP 5.6 ã«æ¡ç¨äºå®ã® phpdbg ãã²ã¨è¶³å ã« PHP 5.5.7 ã§è§¦ã£ã¦ã¿ã¾ããã phpdbg phpdbg ã¯ãgdb ã©ã¤ã¯ãª PHP ç¨ã®ãããã¬ã§ãããã¬ã¼ã¯ãã¤ã³ããè¨å®ãã¦ããã®æç¹ã®ã³ã³ããã¹ãã確èªããããã¹ãããå®è¡ãªã©ãã§ãã¾ãã phpdbg | php debugger ã¤ã³ã¹ãã¼ã« PHP 5.6 ããå梱ãããäºå®ã® phpdbg ã§ãããããèªä½ã¯ãã§ã«ãªãªã¼ã¹ããã¦ãããPHP 5.4 ããå©ç¨ãããã¨ãå¯è½ã§ããã¤ã³ã¹ãã¼ã«ã«ã¯ãPHP ã®ã½ã¼ã¹ã³ã¼ããå¿ è¦ã«ãªãã®ã§ãPHP ã ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã¾ãã $ sudo yum -y groupinstall "Development Tools" $ sud
æ¦è¦ CakePHP + DebugKit ã§éçºãã¦ããã¨ãã«ã ããã®SQLã©ãã§çºè¡ããã¦ããã®ï¼ãã¨ãªããã¨ãããã®ã§ã ActiveRecordã®SQLã®å®è¡ç®æãSQLã®ã³ã¡ã³ãã«å ¥ãã - I sort my thought... ãåèã«ãã¦ç°¡åãªããã°ã©ã ãä½æãã¾ããã ä½ããDebugKit ã§ä½¿ãã«ã¯ãDebugKit ã®ä»æ§ä¸ä¸éå端ã«ãªã£ã¦ãã¾ãã¾ããã ç°å¢ PHP 5.4.11 debug_backtrace 㮠第2å¼æ° limit 㯠5.4.0 ã§è¿½å ããããã®ãã©ã¡ã¼ã¿ã使ã£ã¦ã¹ã¿ãã¯ãã¬ã¼ã ã®æ°ãå¶éã§ãã¾ãã ä»åã¯ãããå©ç¨ãã¦ããã®ã§ãPHP5.4以ä¸ã§ããå¿ è¦ãããã¾ã CakePHP 2.4.8 2.4以éãªãåä½å¯è½ 2.3æªæºã¯æªç¢ºèª ä»æ§ DboSource::execute ãæ¡å¼µ SQLã®æå¾ã«ãdebug_print_back
1 pixelï½ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãå ¬å¼ã¯ãªã¨ã¤ã¿ã¼ãºããã° ãµã¤ãã¼ã¨ã¼ã¸ã§ã³ãã®ã¯ãªã¨ã¤ã¿ã¼ã®åãçµã¿ãç´¹ä»ãããªãã£ã·ã£ã«ããã°ã§ããææ°æè¡ã¸ã®ææ¦ããµã¼ãã¹èªçã®è£è©±ãåå¼·ä¼ãã¤ãã³ãã®ã¬ãã¼ããªã©CAã¯ãªã¨ã¤ã¿ã¼ã®æ å ±ãæºè¼ã§ãã ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã®è°·ã§ãã æ¬è¨äºã§ã¯Google Chromeã®éçºè ãã¼ã«ãChrome DevToolsã使ãããªãããã«åèã«ãªããµã¤ãããã¼ã¸ã®ç´¹ä»ããã¾ãã ãã§ã«å¤ãã®ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ãéçºã§ä½¿ã£ã¦ããããããã¾ãããããè¦ç´ ã®ã¤ã³ã¹ãã¯ã¿ãªã©ã®åºæ¬çãªæ©è½ãã使ã£ã¦ããªãããUAåãæ¿ããããããã¤ãã£ã¦ãªããã¨ãããããªæ¹ããããããã»ã¨ãã©ä½¿ã£ããã¨ããªããã¨ããæ¹ãããããåèã«ããã³ãã¨ã³ãéçºãå¹çåãã¦ããã¾ãããï¼ åºæ¬çãªä½¿ãæ¹ Chrome DevTools Overview åºæ¬ã¯ãã¯ãå ¬å¼ããã¥ã¡
ã¯ããã« ã¤ãæè¿ç¥ã£ã便å©ãªãããã°æ¹æ³ (é·å¹´ã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ããã®ã«ç¥ããªãã£ããããã常èã ã£ããæ¥ããããâ¦) ã·ã§ã«ã¹ã¯ãªããã®ãããã°ã§ã¯ echo ã§å¤æ°ã®ä¸èº«ãè¦ãã¨ããåå§çãªæ¹æ³ããã使ããã¨æãã¾ãã ãããã ããªã³ããããã° ã¨ãããã¤ã§ããã ããå°ã詳ãããããã°ãå¿ è¦ãªå ´åã¯ã set -x 㨠set +x ã§ãããã°ãããé¨åãå²ãã¨ããæ¹æ³ãããã¾ãã ä»å㯠ããªã³ããããã° ã§ä½¿ã echo ã®ä»£ããã« typeset or declare ã使ãã¨è¯ãã¨ããã話ã§ãã ããªã³ããããã°ã¯ typeset or declare ã使ãã typeset or declare ã¯å¤æ°å®£è¨ãªã©ã§ãã使ãã³ãã³ãã§ãããå¤æ°ã®ä¸èº«ãè¦ãã®ã«ã使ãã¾ãã echo ã¨æ¯ã¹ã¦ä½ãè¯ãã®ãã¨ããã¨ãå¤æ°ã®ä¸èº«ã¯ãã¡ããå¤æ°åãå¤æ°ã®åã表示ãã¦ããã
SuperDBã¯iOS/Mac OSXç¨ã®ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ï¼BSD Licenseï¼ã§ãã iOSã®ãããã°ããã¡ãã£ã¨ãã調æ´ããã¦ã¯ã³ã³ãã¤ã«ãç´ãã¦ç¢ºèªããâ¦ã¨ãã£ãéçºã§è¦å´ããè¦ãã¯ãªãã§ãããããããã§ä»åã¯iOSã¢ããªã®ã¤ã³ã¿ã©ã¯ãã£ããªãããã¬ã¼SuperDBãç´¹ä»ãã¾ãã Mac OSXã¢ããªãã³ã³ãã¤ã«ããã¨ãiOSã·ãã¥ã¬ã¼ã¿ã§ç«ã¡ä¸ãã£ã¦ããã¢ããªåã表示ããã¾ããããã«ã¯ãªãã¯ãã¦æ¥ç¶ãã¾ãã ããããã¨ã³ã³ã½ã¼ã«ãéãã®ã§ãä¾ãã°selfã¨æã¡ã¾ãã ãã¡ãã¯iOSã¢ããªã®ç»é¢ã§ãã è§ã«ä¸¸ã¿ãã¤ãã¾ãããããã¯ã³ã³ã½ã¼ã«ããå®è¡ããã®ã¿ã§ãiOSã¢ããªã¯ç«ã¡ä¸ããã¾ã¾ã«ãªã£ã¦ãã¾ãã ãã®44ã¨ããé¨åã丸ã¿æå®å ´æã§ããã¦ã¹ã§ãã©ãã°ãã¦æ°å¤ãå¤æ´ã§ããã®ãã¦ãã¼ã¯ã§ãã SuperDBã¯iOSã¢ããªã®æä½ãF-Scriptã®ãããªã·ã³ã¿ãã¯ã¹ã§
Build better apps with Reveal.Review, fix, and improve your appâs accessible and visual user experiences with powerful UI inspection and testing tools.Try for Free Reveal streamlines accessibility for mobile developers with a powerful suite of testing tools. Use advanced visualizations to inspect apps at runtime, debug layout problems, modify views on the fly, diagnose issues and experience your a
// Objective-C #ifdef __OBJC__ // debugã§ãããã°ãåºããªã #ifdef DEBUG #define __DISPLAY_LOGS__ #endif #ifdef __DISPLAY_LOGS__ #define NSLogCGAffineTransform(x) NSLog(@"CGAffineTransform : %@", NSStringFromCGAffineTransform(x)) #define NSLogCGPoint(x) NSLog(@"CGPoint : %@", NSStringFromCGPoint(x)) #define NSLogCGRect(x) NSLog(@"CGRect : %@", NSStringFromCGRect(x)) #define NSLogCGSize(x) NSLog(@"CGSize : %
追è¨: è¯ãåã®ã¿ããªã¯ãããªãã¯ããèªåã§å®ç¾©ããåã«UIKit Function - String Conversionsã¨ãCocoaLumberjackã¨ã使ããã ãï¼ï¼ï¼ï¼ï¼ ãã°ã¯åºããããã©ãªãªã¼ã¹ãã«ãæã«ã¯åºããããªãã¨ããæã«ä½¿ãå種ãã°ãã¯ãã§ãã å人çã«ä½¿ã£ã¦ãããã®ã®ã¾ã¨ãã§ãã(ãªã¼ãã³ã½ã¼ã¹è¦ã¦ããã¨ãããããªç¨®é¡è¦ããã¾ãã) ããã¸ã§ã¯ããä½ãã¨ãã³ãã¬ã§åºæ¥ããã¢ããªå-Prefix.pchãã¨ãããããã«æ¸ãã¨ã©ã®ã½ã¼ã¹ã§ã使ããããã«ãªãã®ã§ä¾¿å©ã§ãã #ifdef DEBUG #define LOG(...) NSLog(__VA_ARGS__) #define LOG_PRINTF(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF
å°å ¥ iOS éçºè ã®ã¿ãªãããããã«ã¡ã¯ã ãã®ããã°ã§ã¯ä¸»ã«ãã¥ã¼ããªã¢ã«ã ã£ãããã¬ã¼ã ã¯ã¼ã¯ã®ç´¹ä»ã¿ãããªãã¨ãæ¸ãã¦ãã¾ããã ããã§ããã¾ã«ã¯ä¸ç´è åãã®ã¨ã³ããªãæ¸ãã¦ãXcode ããªããªä½¿ã£ã¦ããã·ãã· Objective-C æ¸ãã¦ã¾ãããã¢ãã¼ã«ãã¾ãã iOS éçºãã¯ããã¦ä¸éã Framework ã¯ç解ãããã© Xcode 使ãããªãã¦ãæã足ããªãæ¹ã夢ã«ã¾ã§ EXC_BAD_ACCESS ãåºã¦ããæ¹ã«åèã«ãªãè¨äºã¨ãªãã°ã¨æãã¾ãã ã¨ãã£ã¦ã Xcode ã¯ããã·ã㪠IDE ãªã®ã§ã4ã¤ã®ãããã°ãã¼ã«ã«åãã¦ããããããç¥ããªãã£ãï¼ä¾¿å©ãããï¼ããªæ¹æ³ãç´¹ä»ãã¾ãã ãã¬ã¼ã¯ãã¤ã³ã ãããã°ã«ã¯åã£ã¦ãåããªãé¢ä¿ã§ãããã¢ããªãå®è¡ä¸ã«æå®ããè¡ã§å¦çãä¸æããããããã¹ãããå®è¡ã§ç´°ãããããã°ãå¯è½ã«ãã¦ããã¾ãã ã·ã§ã¼ãã«ãããã¼
NSLogã§Xcodeã«ãã°ãåºåãããã®ã¯çããããã£ã¦ããã¨æãã¾ããããã°ãå¤ããªã£ã¦ããã¨å¤§äºãªæ å ±ãè¦è½ã¨ããã¡ã«ãªãã¾ãã ããã§ãXcodeã®ãã°åºåã«è²ãã¤ãã¾ãããï¼ NSLogã«è²ãã¤ããã®ã¯ç°¡å・・・ã§ã¯ãªãï¼ ãã°åºåã«è²ãã¤ãããããç°¡åã ããã¨æã£ã¦ãã¾ãããããNSLog colorããªã©ã§æ¤ç´¢ãã¦ã¿ã¦ãæå¤ã¨ãºããªã®æ å ±ãåºã¦æ¥ã¾ããã Any way to print in color with NSLog? åç´ã«ã¯è²ãã¤ããããªããã§ãã NSLog(@"%@", @"log"); NSLog(@"\e[1;31mRed text here\e[m normal text here"); NSLog(@"\033[fg255,0,0;%@\033[;", @"Red log"); NSLog(@"\033[fg0,0,255;%@\033[;", @"
ããããå é±ã¯ãã¥ã¼ã®å転ã«ãã£ããããã£ã¦ãã¾ãã¾ãã¦ããã èªæã®æå³ãè¾¼ãã¦ããã¥ã¼é¢é£ã®ãããã°ã«ä¾¿å©ãããªææ³ãããã¹ã¾ããã®ã§ã¾ã¨ãã¦ã¿ã¾ããã recursiveDescriptionã¡ã½ãã ãã¥ã¼ã®é層æ§é ãframeã®å¤ãä¸æ°ã«åå¾ããããã®ã¡ã½ããã ï¼â»éå ¬éã¡ã½ããã®ããããã«ãããã¨ã¯ã¼ãã³ã°ã«ãªãã¾ããï¼ ä½¿ãæ¹ã¯è³ã£ã¦ç°¡åãé層æ§é ãé層ã«å«ã¾ãããã¥ã¼ã®æ å ±ãç¥ããããã¥ã¼ã«å¯¾ãã¦ç´æ¥ãã®ã¡ãã»ã¼ã¸ãå¼ã¹ããã§ãã NSLog(@"%@", [self.view recursiveDescription]); layer.borderColor layer.borderWidth ãã¥ã¼ãå転ãããã¨ããAffineå¤æçã«ãã£ã¦æå¾ ããå¤æãã§ãã¦ãããã確ãããã¨ãã«éå®ãã¾ããã ãã¥ã¼ã®ã¬ã¤ã¤ã«ã¢ã¯ã»ã¹ãã¦ã¬ã¤ã¤ã®æ ã«è²ãä»ãã¦ããã¾ãã //Qu
ããã«ã¡ã¯ã@yoheiMuneã§ãã ä»æ¥ã¯ãUIWebViewãã¼ã¹ã®ã¢ããªã±ã¼ã·ã§ã³ã®ãããã°ã«å½¹ç«ã¤ã window.cosole.logã®å 容ãXCODEã®ã³ã³ã½ã¼ã«ã«åºåããæ¹æ³ãæ¸ãããã¨æãã¾ãã UIWebViewãã¼ã¹ã®ã¢ããªã¯ãããã°ãã¥ããï¼ UIWebViewãã¼ã¹ã®ã¢ããªãéçºããéã«ããããã°ããã¥ããã¨ããåé¡ç¹ãããã¾ãã é常ã®Webãã¼ã¸éçºã§ã¯ãChromeã®ãããããã¼ãã¼ã«ããiPhoneç¨ã®Webã¤ã³ã¹ãã¯ã¿ï¼è©³ç´°ã¯ããã¡ããåç §ï¼ãç¨ãã¦éçºããäºã§ãå¹ççã«ãããã°ããäºãå¯è½ã§ãã ãããUIWebViewã§è¡¨ç¤ºããWebãã¼ã¸ã®ãããã°ã¯JSã®ãã°ã¨ãè¦ããªãã®ã§ããããã°ãã¥ããã ãã®è§£æ±ºçã¯ããã¤ãããã¾ãããä»åã¯JavaScriptã®window.console.logãXCODEã®ã³ã³ã½ã¼ã«ã«åºåãã¦ã ãããã°æ å ±ãå ¥æã
é層ä»ãã®ãã¬ã¼ã¹åºåããã®ãããªæãã§å®è£ ãã¾ãã (function(global) { function console_q() { function begin() { console.log(repeat("|", nest) + "+- " + fname + "(" + slice.call(args).join(",") + ")"); } function q() { console.log(repeat("|", nest) + "| " + fname + "(" + slice.call(arguments).join(",") + ")"); } function end() { console.log(repeat("|", nest) + "`- " + fname); return --console.q.nest; } function repeat(st
é±æ«ã¯ãªã¬æ¨æºJavaScriptåå¼·ä¼ã®Ustreamãçºãã¦ã¾ãããagoï¼@kyo_agoï¼ã§ãã 以åjQuery使ããé¥ããããç½ ã®ä¸ã§ã4 ä½ã§ãä¸è¡ã§æ¸ããã¨ãããã¨ããç¹ãä¸ããã®ã§ããã以ä¸ã®ãããªmethodãå®ç¾©ãããã¨ã§method chainã®ãããã°ã楽ã«ãªãã®ã§ç´¹ä»ãããã¨æãã¾ãã $.fn.p = function (id) { var arg = [this]; if (id) arg.unshift(id); if (!window.console) return this; var c = window.console || { 'log' : function () {} }; (c.debug || c.log).apply(c, arg); return this; }; å ·ä½çãªä½¿ãæ¹ã§ããã以ä¸ã®ããã«ç¢ºèªãããmethodã®å¾ã«.p()ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}