Ability to set JavaScript breakpoints in browser pointed at local environment -
unfortunately, while javascript breakpoints can set in production, cannot set in local. in local, on refresh, javascript execution proceeds unimpeded, if no breakpoint had ever been set. (this has been tested in chrome, safari , ff on mac os x.)
the current local environment differs in headers javascript files.
the headers pasted, below. there difference in headers being set, cause undesirable behavior in local.
thanks!
production
general remote address:23.235.33.207:80 request url:http://www.example.com/wp-content/themes/example/js/header.top.min.js?ver=1427752599 request method:get status code:200 ok (from cache) response headers accept-ranges:bytes access-control-allow-origin:* age:149381 cache-control:max-age=31536000 connection:keep-alive content-encoding:gzip content-length:56250 content-type:application/javascript date:wed, 01 apr 2015 15:28:14 gmt etag:"2a5ce-5128893ad1780-gzip" last-modified:mon, 30 mar 2015 21:58:06 gmt server:apache varnish-x-cache:hit varnish-x-cache-hits:4259 vary:accept-encoding x-cache:hit x-cache-hits:4259 x-served-by:cache-jfk1021-jfk x-timer:s1427902094.409391,vs0,ve0 request headers provisional headers shown user-agent:mozilla/5.0 (macintosh; intel mac os x 10_10_2) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.104 safari/537.36 query string parameters ver:1427752599
local
general remote address:192.168.33.28:80 request url:http://example.local/wp-content/themes/example/js/header.top.min.js?ver=1427902154 request method:get status code:200 ok response headers accept-ranges:bytes connection:keep-alive content-length:173487 content-type:application/javascript date:wed, 01 apr 2015 15:29:16 gmt etag:"2a5af-51294e60377c0" keep-alive:timeout=5, max=100 last-modified:tue, 31 mar 2015 12:40:07 gmt server:apache/2.4.6 (centos) openssl/1.0.1e-fips php/5.6.7 request headers accept:*/* accept-encoding:gzip, deflate, sdch accept-language:en-us,en;q=0.8 connection:keep-alive cookie:optimizelyenduserid=oeu1427902096929r0.009481394430622458; cn_adsqt=%7b%22count%22%3a1%2c%22expire%22%3a1427984897264%7d; cn_adcap=%7b%22count%22%3a1%2c%22expire%22%3a1427902697265%7d; mbox=session#1427902097343-248716#1427903958|pc#1427902097343-248716.25_59#1435678098; original_referrer=; phpsessid=h31joi3efmcp09mgj2t2988jl6; s_pers=%20s_campaign%3d%7c1427903898400%3b%20s_vnum_m%3d1430452800405%2526vn%253d1%7c1430452800405%3b%20sinvisit_m%3dtrue%7c1427903898405%3b%20s_nr%3d1427902098411%7c1430494098411%3b%20s_evar10%3d%7c1427903898416%3b%20s_depth%3d1%7c1427903898418%3b%20gpv_p5%3dhomepage%7c1427903898424%3b; s_sess=%20s_cc%3dtrue%3b%20s_sq%3d%3b; cookies.js_domain_test=1; _parsely_session={%22sid%22:1%2c%22surl%22:%22http://example.local/%22%2c%22sref%22:%22%22%2c%22sts%22:1427902099180%2c%22slts%22:0}; _parsely_visitor={%22id%22:%226c45a1ff-1b3b-4b17-97bd-79418e00d7c3%22%2c%22session_count%22:1%2c%22last_session_ts%22:1427902099180}; __gads=id=bb7813438602a520:t=1427902100:s=alni_mytp9uganebxufsca4e_cesjbvfkg; optimizelysegments=%7b%222494890534%22%3a%22false%22%2c%222501230342%22%3a%22direct%22%2c%222501840319%22%3a%22none%22%2c%222515720226%22%3a%22gc%22%7d; optimizelybuckets=%7b%7d; optimizelypendinglogevents=%5b%22n%3dhttp%253a%252f%252fexample.local%252f%26u%3doeu1427902096929r0.009481394430622458%26wxhr%3dtrue%26t%3d1427902156634%26f%3d2725330192%26g%3d%22%5d host:example.local referer:http://example.local/ user-agent:mozilla/5.0 (macintosh; intel mac os x 10_10_2) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.104 safari/537.36 query string parameters ver:1427902154
does version number change each request/build in local?
header.top.min.js?ver=1427902154
if does, browser @ different file , lose breakpoints. design, reason included in code break cache.
try setting version constant in dev, or removing together.
Comments
Post a Comment