Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>mynote phpstorm调试</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[],"level":0,"lvNumber":"","text":"mynote phpstorm调试"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#c80000;} .s4{color:#c80000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>mynote phpstorm调试</a></li> </div>

<pre id='ol_0' class='title'>mynote phpstorm调试</pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>phpstorm可以支持前后台服务器同时调试,原理参见:<a href='../phpstorm.html#6cc80246-7a2c-4c83-bfd3-c200413486b7'>phpstorm debugging 2; 调试 分析 </a></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>关键是要传递XDEBUG_SESSION_START值,需要对代码做必要的处理:</d></pre> <pre><d class='s1'>SHA-1: 5f0614ce0214b2471bac33aa2f540c13b94034dd</d></pre> <pre><d class='s1'>* </d><d class='s2'>后台api调试支持,需要配置php的ide key</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>1、启动两个phpstorm,分别打开前后台代码。</d></pre> <pre><d class='s0'>2、分别启动调试。</d><d class='s3'>注意,这里要用不同浏览器打开调试。</d><d class='s0'></d></pre> <pre><d class='s0'><img src='..\pic\3021daec40efd682502d90d547979983.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'>3、查看后台phpstorm的ide key,</d></pre> <pre><d class='s0'><img src='..\pic\632ed390fcaae0aa7a61d3410a42a4bd.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'>将其写入params配置:</d></pre> <pre><d class='s0'><img src='..\pic\b8394233f43251d9a4786860a7b43a30.jpg' /></d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s3'>PS:</d></pre> <pre><d class='s3'>1、如果</d><d class='s4'>前后台代码是在同一个git仓库中,注意后台代码的版本;很多时候升级了前台代码,后台代码却没有升级!!</d></pre> <pre><d class='s4'>2、注意配置api_url</d></pre> <pre><d class='s0'></d></pre> </body></html>

mynote_crawl

mynote_design

点赞(0) 阅读(54) 举报
目录
标题