phpstorm

phpstorm设置断点过程

一曲冷凌霜 提交于 2019-12-29 12:03:23
1.为php安装xdebug,方法在上一篇中有详细介绍 2.注意这个时候需要修改php.ini内容如下: [Xdebug] zend_extension_ts ="d:/wamp/php/ext/php_xdebug-2.1.2-5.2-vc6.dll" xdebug.auto_trace=On xdebug.collect_params=On xdebug.collect_return=On xdebug.trace_output_dir="d:/wamp/php/debuginfo" xdebug.profiler_enable=On xdebug.profiler_output_dir="d:/wamp/php/debuginfo" xdebug.idekey=PhpStorm xdebug.remote_enable=on xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp 3.phpstorm配置 客户端调试,打开 phpStorm ,进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息,name填localhost,host填localhost,port填80,debugger选 XDebug 进入File>Settings>PHP

phpstorm设置断点调试

断了今生、忘了曾经 提交于 2019-12-29 12:02:56
环境是:wamp PHP Version: 5.5.12 网上的教程很多,我自己按照教程操作,实现了断点调试,下面是我设置断点调试的步骤 1.修改配置文件php.ini,按下面修改(位置在最后) ; XDEBUG Extension zend_extension = "D:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll" ; [xdebug] xdebug.remote_enable = on xdebug.remote_host="127.0.0.1" xdebug.port=9000 xdebug.profiler_enable = on xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.remote_autostart=on xdebug.profiler_output_dir = "D:/wamp/tmp" xdebug.show_local_vars=0 xdebug.idekey = PHPSTORM 修改完后重启服务 用phpinfo查看,出现如下配置,则代表修改成功 2.phpstorm设置 File->Settings-> PHP->Server

Turn off autocomplete in PhpStorm

耗尽温柔 提交于 2019-12-29 08:32:21
问题 Right now if I type in $ into Jetbrains PhpStorm IDE, it will display a whole bunch of suggestions (e.g. variables that have already been declared) which slows down my typing. Is there a way to configure PhpStorm to NOT do this? In other words, turn off auto-complete or only do auto-complete if I press Ctrl + Space and not when I just type in $ ? 回答1: Disable code completion? See Settings/Preferences(depends on OS) - IDE Settings - Editor - Code Completion There you should find an option

PHPStorm unable to make external connection with xdebug

夙愿已清 提交于 2019-12-29 07:29:06
问题 My OS is Mac Mountain lion. My PhpStorm version is 5.0.4. Here is my php xdebug info: xdebug.remote_autostart => Off => Off xdebug.remote_connect_back => Off => Off xdebug.remote_cookie_expire_time => 3600 => 3600 xdebug.remote_enable => On => On xdebug.remote_handler => dbgp => dbgp xdebug.remote_host => 127.0.0.1 => 127.0.0.1 xdebug.remote_log => data/logs/xdebug.log => data/logs/xdebug.log xdebug.remote_mode => req => req xdebug.remote_port => 9000 => 9000 xdebug.idekey => no value => no

How to add Compass syntax support to Jetbrains PhpStorm?

人盡茶涼 提交于 2019-12-29 03:29:04
问题 I'm using JetBrains PhpStorm, which is probably the most epic IDE I've ever used. The question is simple. How do I add Compass syntax support to it? I've got it installed, it renders and works, but PhpStorm still complains about undefined imports and mixins. How can I resolve this? Can Compass be included as an external library? Edit : I'd just like to note that this feature request is for the RubyMine IDE (also by JetBrains), it's not for PhpStorm/WebStorm. 回答1: It's explanation of Martin's

Why does Sass prepend an incorrect @charset rule?

社会主义新天地 提交于 2019-12-28 13:35:08
问题 I use sass --watch scss:css to have Sass automatically create CSS files (and put them in the /css directory) for each SCSS file (from my /scss directory). In my SCSS file I have this: .foo::before { content: "▶"; } When I test the web page in the browser, that "play" character is not displayed - instead I see a bunch of weird letters with carons and other accents. I inspected the generated CSS file and noticed this in the first line: @charset "CP852"; I then manually changed that to this:

Why does Sass prepend an incorrect @charset rule?

限于喜欢 提交于 2019-12-28 13:35:05
问题 I use sass --watch scss:css to have Sass automatically create CSS files (and put them in the /css directory) for each SCSS file (from my /scss directory). In my SCSS file I have this: .foo::before { content: "▶"; } When I test the web page in the browser, that "play" character is not displayed - instead I see a bunch of weird letters with carons and other accents. I inspected the generated CSS file and noticed this in the first line: @charset "CP852"; I then manually changed that to this:

JetBrains / IntelliJ keyboard shortcut to collapse all methods

我只是一个虾纸丫 提交于 2019-12-28 07:48:32
问题 I'm working on some legacy code that has a class that is 10,000+ lines of code and has 100s of methods. Is there a shortcut for any JetBrains IDE (since the shortcut would likely be shared across all of them) to collapse all the methods / functions so that only the method signatures are shown? Something like this: public String myMethod(String arg1, int arg2){...} public String mySecondMethod(String arg1, int arg2){...} 回答1: You may take a look at intellij code folding shortcuts. For Windows

Can IntelliJ IDEA encapsulate all of the functionality of WebStorm and PHPStorm through plugins?

两盒软妹~` 提交于 2019-12-27 12:11:11
问题 I am in the market for a new IDE but am confused about the overlap between some of Jetbrains' offerings. It looks like IntelliJ IDEA has plugins that allow you to do Node.js and php development. Can IntelliJ IDEA do everything that WebStorm and PHPStorm do through plugins or do they have special features not available in IDEA? I am hoping to have a single polyglot IDE for all development. 回答1: All of the functionality of our lightweight IDEs can be found within IntelliJ IDEA (you need to