Sublime Text 2 and Xdebug - debugging

I'd like to use Xdebug with Sublime text 2, I've installed the Xdebug package, now what do I do next? I also have Xdebug installed as a PHP module and its working fine, because I can debug through my Komodo IDE.

You need to download xdebug plugin for sublime text which can be done easily with the help of package manager for sublime text.
after that
- Shift+f8: Open XDebug quick panel
- f8: Open XDebug control quick panel when debugger is connected
- Ctrl+f8: Toggle breakpoint
- Ctrl+Shift+f5: Run to next breakpoint
- Ctrl+Shift+f6: Step over
- Ctrl+Shift+f7: Step into
- Ctrl+Shift+f8: Step out

you can try this plugin
https://github.com/Kindari/SublimeXdebug
have not had time to test it myself though
if you do, it would be nice to report your experience

Related

Setting up xdebug within Aptana on Docksal site

Bear with me - I'm learning as I go, and this is all new to me. I've set up Docksal on Mac OSX, and added an existing site. I've also got Xdebug installed. In order to use it, it appears I need an IDE. I've installed Aptana (no budget for pay services).
I'm trying to figure out how to set up the debugging within Aptana. I see old instructions from 2013 and older. They get me into the general area, of adding a PHP interpreter. But I'm stumped from here.
I don't know what to put in the Name and executable path (if I'm even in the right place for this) when I search for PHP.exe, nothing comes up. When I search for php.ini, I just find files sitting in unrelated Acquia Dev Desktop projects.
I may have accidentally managed to answer my own question.
In terminal, I first typed php --ini , but this gave me (none).
Next I tried sudo find / -type f -name php.ini
After entering the system password, I get three results:
/usr/local/etc/php/5.6/php.ini
/usr/local/etc/php/7.1/php.ini
/usr/local/php5-7.1.10-20171002-090111/lib/php.ini
Next, for the .exe file path, I typed which php
This gave me /usr/bin/php
So, within Aptana Studio 3, I went to Preferences. In the sidebar file tree I navigated to Aptana Studio > Editors > PHP > PHP Interpreters. Click the "Add" button. (This is where I got to, before realizing I couldn't find those files.
from the results above, I added my info:
In executable path, I placed: /usr/bin/php
In PHP.ini files, I placed: /usr/local/etc/php/7.1/php.ini
Press save, and that part "seems" to be solved. Here's hoping it works. I see errors in the bottom pane of Aptana when viewing a php file - so that's promising.

How to setup Xdebug in Sublime Text 3?

I'm using Linux 16.04, my PHP version is 7.0 and version of Sublime Text is 3.0. I followed few tutorials on the topic but none became fruitful to me.
In my case after pressing Ctrl + Shift + P, choosing install Package when I search Xdebug nothing shows.
Any kind of suggestions are welcomed.
Currently I've found two xdebug packages in sublime-text
Xdebug - Only for Sublime Text 2
Xdebug Client - For both Sublime Text 2 and 3
So if you did not found any package suggestion then following could be occurred:
Xdebug Client May be already installed in your sublime text.
Make sure that 'Xdebug Client' is not in ignored_packages of your sublime text settings file.

Gnome Shell extensions not loading, no error message available

I have two gnome-shell extensions that don't appear to be loading after upgrading to 3.24. In gnome-tweak-tool they have a warning sign icon with "Error loading extension", and nothing else. I tried using looking glass (lg), and it just says "Error", and that the extension "has not reported any errors".
How can I debug the extension to find out why exactly it's not loading?
I found the error in the systemd journal:
$ sudo journalctl /usr/bin/gnome-shell
Just simply run this on terminal:
gnome-extensions-app
and enable it to make the extensions work.
Works perfectly with GNOME 40
As mentioned on the Github page.
A Shell reload is required. Press Alt+F2 r Enter and the extension has to be enabled with gnome-tweak-tool or with dconf.
As mentioned on Dash to Dock's User reviews. Make sure you disable Ubuntu Dock if you are using this in Ubuntu, otherwise you are going to have conflicts.
To disable Ubuntu Dock type the following in terminal:
gnome-extensions disable ubuntu-dock#ubuntu.com
I also experienced the same error. I think I will like to state the procedures that I took to make mine to work, and then you can check to see if you got it wrong somewhere.
Here are the steps
First install the Gnome shell extensions package from the terminal
sudo apt install gnome-shell-extensions
And then reboot your system. After that, start GNOME Tweaks and you’ll find a few extensions installed. You can just toggle the button to start using an installed extension.
Next, go to GNOME Extensions website (GNOME User Themes Extensions) and download the extension with the latest version (Although, I often prefer to download the version next to the latest version, since it may be more stable).
Extract the downloaded file to the ~/.local/share/gnome-shell/extensions (home/.local/share/gnome-shell/extensions) directory. You can press Ctrl + H to show hidden folders. Create the extensions folder if you don't have it yet.
Now restart GNOME Shell. Press Alt+F2 and enter r to restart GNOME Shell.
Restart GNOME Tweaks tool as well. You should see the manually installed GNOME extension in the Tweak tool now. You can configure or enable the newly installed extension here.
That's all
I hope this helps
Loging in without wayland works for me.
My extension was not enabling. I just log out and log in back and ran this command.
gnome-extensions enable example#hammad.example.com
It worked in my case.

Gherkin highlighting and behat integration with Netbeans 8.0

Is there anyone who has a decent working solution to integrate Netbeans 8.0 with behat, in terms of code highlighting and code-completion.
I saw that there exists the Cetriolo plugin which is unfortunately not available for Netbeans 8.0.
Has anyone found a workaround on this?
I would suggest this plugin for NetBeans that works also for version 8.x
http://plugins.netbeans.org/plugin/17939/cucumber-features
Some more details to #Ferie's answer:
I indeed could not install Cetriolo on Netbeans 8.2.
Instructions to install Cucumber Features manually (since automatic installation is not available):
Download the .nbm file by clicking on the "Download" button on http://plugins.netbeans.org/plugin/17939/cucumber-features
In Netbeans, go to Tools > Plugins > Downloaded > Add Plugins... and open the .nbm file.
Click Install
After restarting Netbeans, you should see syntax highlighting in .feature files.
Here's a feature request for Netbeans to include Behat support out-of-the-box:
https://netbeans.org/bugzilla/show_bug.cgi?id=226804

Aptana 3 - Can't update because of pydev dependency

I'm trying without success to update aptana 3 using the Check for updates.. option, but I am getting the following error:
Cannot complete the install because of a conflicting dependency.
Software being installed: Aptana Studio 3 3.0.7.201112151935-15122011194114 (com.aptana.rcp.product 3.0.7.201112151935-15122011194114)
Software currently installed: Shared profile 1.0.0.1313016179000 (SharedProfile_AptanaProfile 1.0.0.1313016179000)
Only one of the following can be installed at once:
Pydev debug 2.2.1.2011073123 (org.python.pydev.debug 2.2.1.2011073123)
Pydev debug 2.2.4.2011121401 (org.python.pydev.debug 2.2.4.2011121401)
Cannot satisfy dependency:
From: Shared profile 1.0.0.1313016179000 (SharedProfile_AptanaProfile 1.0.0.1313016179000)
To: org.python.pydev.debug [2.2.1.2011073123]
Cannot satisfy dependency:
From: Aptana Studio 3 3.0.7.201112151935-15122011194114 (com.aptana.rcp.product 3.0.7.201112151935-15122011194114)
To: org.python.pydev.debug [2.2.4.2011121401]
How to I uninstall pydev / solve this problem?
Thanks
If you've installed PyDev, you really need to uninstall it to get Aptana Studio 3 (which already contains a version of PyDev) -- go to help > about > installation details, click the PyDev plugin and select "uninstall" (at the bottom).
Also, instead of doing 'check for updated', I'd recommend going to help > install new software, deselect 'contact all update sites to find required software' and then entering the Aptana Studio 3 Update site (as a new version will be there, it'll go on and only update Aptana Studio 3 at that point).
I know what the problem may be not working because the python interpreter path is not defined, after installing Aptana 3 you go to menu Window / Preferences and the option Interpreter - Python using the Auto Config button, good luck

Resources