我使用windows xp x86,wamp,apache2,php 5.3 x86,eclipse php和xdebug,在localhost上运行同时作为虚拟主机和https虚拟主机
eclipse版本信息
Eclipse for PHP Developers版本:Helios发布版本号:20100617-1415
我不知何故成功地设置了eclipse和xdebug,一切都很顺利.
然后我必须创建我的项目的svn分支,并使用2个新的虚拟主机重新配置apache,并更新我的Windows主机文件.
现在,当我在eclipse中启动调试模式时,一切都会消失.
具体来说,如果我没有设置断点,应用程序运行正常,除了我试图首先调试的问题.
如果我设置断点,应用程序会在断点处停止,而eclipse似乎正在控制球.但是现在,当我按下继续,或者跳过,或者进入或打喷嚏时,eclipse告诉我执行已经恢复,但是应用程序继续挂起,我必须重新启动apache.
我怀疑eclipse和xdebug之间的通信有一些中断,因为它看起来像eclipse正在发送我的继续或步骤命令,但xdebug没有收到它.
但即便如此,我也不知道如何应对.我应该在哪里看?
更新:
我已经成功地使用notepad ++,其xdebug插件进行调试,并且像一个穴居人一样,在URL中输入&XDEBUG_SESSION_START = session_name.然而,尽管我喜欢npp,但它的调试插件却非常错误......
所以我注意到了一个名为"phpstorm"的stackoverflow上的广告,它声称是一个轻量级但功能齐全的php ide,具有本机xdebug支持.该演示需要重新启动以使其工作,并且感觉有点像在摇摆的草稿表上工作,但它设法调试我的小测试应用程序和真正的应用程序非常好,这比我可以说的更多的日食那一刻,即使它可能是我的错.
我可能应该早些发布这个:/这是我的phpinfo()xdebug部分
xdebug
xdebug support enabled
Version 2.1.0
Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.145 $
Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.collect_assignments Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
xdebug.default_enable On On
xdebug.dump.COOKIE no value no value
xdebug.dump.ENV no value no value
xdebug.dump.FILES …Run Code Online (Sandbox Code Playgroud) 我从像这样的farmTOanimal表中进行连接.有一个类似的farmTotool表
id | FarmID | animal
1 | 1 | cat
2 | 1 | dog
Run Code Online (Sandbox Code Playgroud)
当我在视图中加入我的表时,我得到一个看起来像这样的结果
FarmID | animal | tool
1 | cat | shovel
1 | dog | shovel
1 | cat | bucket
1 | dog | bucket
Run Code Online (Sandbox Code Playgroud)
现在,我做GROUP BY FarmID,GROUP_CONCAT(动物)和GROUP_CONCAT(工具),我得到
FarmID | animals | tools
1 | cat,dog,cat,dog | shovel,shovel,bucket,bucket
Run Code Online (Sandbox Code Playgroud)
但是,我真正想要的是一个看起来像这样的结果.我该怎么做?
FarmID | animals | tools
1 | cat,dog | shovel,bucket
Run Code Online (Sandbox Code Playgroud) 我有这样的标记
<div>
<h1 style="text-align:center;" >Heading 1</h1>
<img style="float:left;" src="logo.gif"/>
<h1 style="text-align:center;" >Heading 2</h1>
</div>
<div>
Content goes here
</div>
Run Code Online (Sandbox Code Playgroud)
问题是标题2相对于图像之后的空间的其余部分居中,而不是整个div,因此它不在页面的中心.
如果我从位置:绝对的流中删除img,它不会下推内容而是重叠它.
我有一个类似于此的现有表.实际上,foo的数量正好是两个
table foo_old
ID int
name string
bar_name_1 string
bar_code_1 int
bar_name_2 string
bar_code_2 int
Run Code Online (Sandbox Code Playgroud)
因为这让我哭了,我想把它分成两个这样的表
table foo_new
ID int
name string
ID_bar_1 int
ID_bar_2 int
table bar_new
ID int
name string
code int
Run Code Online (Sandbox Code Playgroud)
我的问题是,如何编写一个脚本,为foo_old中的每个现有foo_new创建匹配记录,包括新关联bar_new记录的新ID?
我刚开始使用Netbeans并且我喜欢它,但我似乎无法找到更改html id和类参数值的字体的位置,并且它当前与我的带有随机背景颜色的标签颜色相同.
我一直在玩工具 - >选项 - >字体 - >语法,但我似乎无法找到正确的仪式和调用来改变它.
我应该在哪里看?
以下是技术说明,说明了问题:

我试图平滑切换0到5之间跨度的边框宽度.这是我尝试过的代码,在firefox中开发
function anim()
{
this.sw=!this.sw;
if(this.sw)
{
//lower
$('.cell_action').animate(
{
'border-width':'0px',
'margin':0
},
600
);
}
else
{
//raise
$('.cell_action').animate(
{
'border-width':'5px',
'margin':-5
},
600
);
}
}
Run Code Online (Sandbox Code Playgroud)
当我尝试转到5px时,它似乎可以工作,但是当我再次运行该函数以将动画设置回0时,边框立即设置为0并且只有边距动画.
我想让firephp工作.它在上周工作,我不知道它何时停止工作或我改变了什么.
我现在正在尝试做一个简单的firephp你好世界.
<?php
require_once('FirePHPCore/FirePHP.class.php');
ob_start();
$firephp = FirePHP::getInstance(true);
$firephp->log('Hello', 'World');
require_once('FirePHPCore/fb.php');
$var='test';
fb($var);
FB::send($var);
ob_end_flush();
?>
Run Code Online (Sandbox Code Playgroud)
firebug控制台窗口没有结果,也没有我能找到的错误消息.
FireFox 5.0
FireBug 1.8.0
PHP 5.3.1
Firebug控制台和网络面板已启用.FirePHP已启用.
在get请求下的网络面板中,我没有看到任何X-wf-标头.
if 'force' in kwargs and kwargs['force'] is True:
Run Code Online (Sandbox Code Playgroud)
It feels like there should be a better way of writing this condition since I'm repeating both the key and variable.
<div class="person_roles_div">
<table>
<thead></thead>
<tbody>
{% for position in person.positions %}
<tr>
<td>{{ position.provider|default:"" }} {{ position.role }}</td>
<td>{{ position.facility|default:"" }}</td>
<td>{{ position.startdate|default:"" }}</td>
<td>{{ position.enddate|default:"" }}</td>
<td>
<button id="remove_position_sk_{{ position.position_sk }}" class="position_remove_button">Remove</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
Run Code Online (Sandbox Code Playgroud)
在td输出上下文变量并指定默认值的前四个标记中,PyCharm :在每个标记之前和之后突出显示空白区域.""
hovertip消息是(( or {% expected.页面运行正常.
知道我应该看什么设置吗?
我有类似这样的表
recipes_tbl
| id | Recipe | Directions |
ingredients_tbl
| id | Ingrediant | Category |
recipe_to_ingredient
| id | id_recipe | id_ingredient | Quantity
Run Code Online (Sandbox Code Playgroud)
我正在尝试构建一个查询"获取所有使用牛肉(id_ingredient 1)和土豆(id_ingredient 2)和... n"的食谱
我怀疑解决方案涉及某种奇特的连接...也许?