code completion doesn't work (vscode on mac) when php open/ closing tags are on one line.
code completion works when three lines are used. please see screenshot.
how could this be resolved?
php code completion
cheers
PJ
What extension do you use? This one works fine for me (see screenshot). Also you should be able to activate it manually with CTRL+SPACE
Related
I have a problem in my PHP codes I cant find that. because dont display any warning or error and redirect to the main page of my website project and after many test couldnt find problem.
I want to see steps of running the code for example:
get values of $click and $usercode variables===> redirect to request_change.php and run mysql_query with value="select * from users where userid=65643"==> get $username ==> and else...
I can see some running steps by debugging but not exact that I Want and display many error about finding some directories in require_once function but while my webpages display and process information right by wamp.
Is any way to debugging same as that by Phpstorm or any other programs?
OR
How can I run My php code in phpstorm step-by-step and line-by-line??
Update:
I configured phpstorm for debugging but Just I can use debug and select one of page to debug.I checked all the settings steps that were done correctly But The step by step debug buttons is'nt active such as stepOver and step intro and else... In addition, after debugging the codes, the error : PHP Warning: include_once(): Failed opening '.\dref.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\srn\mrt\req_v.php on line 260
is displayed, while the same code works well in the wamp by Firefox
What should I do to solve this problem?
One of the most powerful and useful tools any developer could have is a debugger. I use xDebug myself. With it you can step through a program during execution and watch each method call, every variable value change, and every action the program does. With PHPStorm it is typically very easy to enable / use xDebug. This would be my recommendation for troubleshooting the issue you have.
References:
https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html
https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
https://confluence.jetbrains.com/display/PhpStorm/Xdebug+Installation+Guide
I have xdebug stop in one breakpoint and I want to test some code in console but I have a problem.
I can't write in console and when I tried to paste it says "this view is read only"
I had the same issue with log files. Disabling all log highlight plugins (i.e. Ideolog) fixed it. They weren't highlighting anything anyway except scrollbar in green color.
Hope this helps somebody.
Sometimes this can happen for the log file that is too large. PhpStorm disables the possibility of editing it and adds “this view is read only” message.
If I'm reading your screenshot and what you wish to do correctly ... then PhpStorm version you are using is too old.
The Interactive Debug Console was added in v10 while you are using v9.0.2.
https://blog.jetbrains.com/phpstorm/2015/09/get-an-advantages-of-interactive-console-during-debugging-in-phpstorm-9-5-eap/
Upgrade your PhpStorm to the latest version -- which is 2017.1.2 right now.
I have uploaded my PHP project created using Eclipse-PDT to the siteground server.
After completing the upload, i tried to run the php pages and it throws an error saying "Expected End of statement".
Then i logged in to the CPANEL and found that all the line breaks are removed from the script. since i have used "single line comments" in my php script ,its throwing error(next line will also append to the previous line)
can anybody help to solve this issue? i have a lot of php pages ,so its not possible to remove all single line comments from all the pages.
Maybe its caused by different file encoding?
Check which format is used in your editor.
I just installed Active state's komodo edit on my Windows. It's running fine but unable to detect syntax errors in php file. Like this code
<?php>
phpinfo() foo[] is my name
?>
There must be a red error highlighted line beneath the error.
Any idea?
Should help you this forum thread?
http://community.activestate.com/forum/php-syntax-checking-komodo
a while ago i could comment any code in php with netbeans like this:
/*
*
*
*/
I just typed /* ENTER and netbeans gave me that lines above. then when i typed # it gave me a full list of all available tags (author, param and so on).
i reinstalled my mac and since then it hasnt worked.
someone knows why and how i can activate it? i installed the netbeans for php only.
Did you import from an old user profile by any chance? This happened to me once. I reset the preferences and it worked. Hope this helps.
Edit: The OP reported that you have to press /** ENTER rather than /* ENTER to get the comments working.
I would suggest 1 of the following:
1) Completely uninstall netbeans and install again
or
2) Check Tools->Options->Editor->Code Templates
You may also want to check the settings in
Check Tools->Options->Editor->Code Completion