English 中文(简体)
PhpStorm 中用 Symfony2 调试图形描述解调
原标题:Javascript debugging with Symfony2 in PhpStorm

我正在利用PHPStorm IDE开发一个 Symfony2 应用程序。

我似乎无法让它工作 。 我尝试过本地参数和远程参数的 Javascript Debug 。 消息与“ 远程 URL 没有指定为断点 ” 等不同 。

最好的情况是,我可以在 PHPStorm 中调试我的标注代码。 这有可能吗?

我还用Assetic Bundle作为我的资产。

最佳回答

我也使用 PHPStorm, 但我只用它来编码, 浏览器中有调试功能 。

So I would say it depends on if PHPStorm executes the app_dev.php and graps the output. If you already have experience with PHPStorm (Debuging) you could answer this. I myself don t think so...

希望我能至少帮点忙:)

问题回答

< a href=>"http://www.jetbrains.com/phptorm/webhelp/configuring-javascamp-debuger.html" rel=“nofollow” >JavaScript 调试绝对可能 ,如果您同时使用 Chrome 或 Firefox 浏览器的话。 目前不支持调试 JavaScript 和 PHP 。

我设计了这个

  1. 安装 < a href=> "https://chrome.google.com/webstore/detail/jet/jetbrains-ide-support/hhhgdbohgjknpmjagkdomcpobmllji" rel=“不跟随 noreferrer" > JetBrains Chrome 扩展

  2. 在 PHPStorm 中,单击运行/调试配置,仅向右上方的绿色错误左侧

  3. 添加一个 Javascript 调试( 使用加号)

  4. 在 URL 框中,只需输入您重新调试的页面的 URL (例如 : < a href="http://my. test/ app_dev.php/route/here/ non- there/3290" rel= "nofollow noreferrer" >http://my. test/ app_dev.php/route/here/not- there/3290 ) 的 URL, 命名配置, 并应用

  5. 在 js 中添加断点

  6. 确保 Dev 工具在浏览器中被关闭, 然后单击绿色错误( 以确保选择了 4 中命名的配置), 并重定向到 4 中指定的页面 。

断点现在将被激活, 并且可以被跳过( 如 xdebug ) 。 当它停在断点上时, 它可能是在原始文件的版本中, 文件名称附加了版本号( 此文件只读) 。 在您更新了实际( 可写) 文件后, 您可以在名称的左侧重新装入只读文件 。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签