If anyone can help it would be most appreciated. I have read through dozens of articles on this but still cannot get it working. I will provide as many screenshots as possible.
I have updated them as suggested, however I still do not have remote php debug capability.
Maybe newer versions op php will not be compatible with komodo?
my settings now are:
zend_extension_ts=“C:/Program Files (x86)/ActiveState Komodo IDE 12/lib/support/php/debugging/8.1/ts-vs16-x64/php_xdebug.dll”
zend_extension=“C:/Program Files (x86)/ActiveState Komodo IDE 12/lib/support/php/debugging/8.1/nts-vs16-x64/php_xdebug.dll”
xdebug.mode=debug
xdebug.remote_handler=dbgp
xdebug.start_with_request=trigger
xdebug.client_host=127.0.0.1
xdebug.client_port=9000
xdebug.idekey=“jdoe”
Any ideas how I can get remote debug to work?
Update:
So my remote debugging is back up. Hooray for me
This worked with wamp and using php 8.1.
Note that xdebug setting names have changed for higher versions.
The following php.ini settings under ";Dynamic Extensions " seemed to do the trick. I also had to comment out duplicate xdebug settings at the bottom of the file.
One question: can you ellaborate on your comment about ;Dynamic Extensions? I can’t find any documentation about what that is so I’m not sure I’ve done that correctly. Did you get that from the xdebug docs?
I should note that for local debugging, you don’t need to set the PHP.ini file location in your preferences. Komodo creates a php.ini file based on the PHP you pointed it at. You can find that ini file in your Komodo Profile folder in the php folder.
If local debugging wasn’t working then it’s likely that the folder structure you constructed (perhaps from incorrect instructions from me) was not quite right. You can see what Komodo is looking for in the php.ini file in the php folder I mention above.
There is only old data in
C:\Users\vpels\AppData\Local\activestate\KomodoIDE\12.0\php
Just 7.3.21 and 5.6.40 folders
Maybe komodo doesn’t like the number 8 or a wamp change is killing a komodo search
I did a 'Run First Start Wizard ’ found under Help. No change. Probably something to do with a change in the newer WAMPs.
Regarding Dynamic Extensions
I was following:
“Add Xdebug to php
In the “Dynamic Extension” section, add the lines specified below. Edit the values to reflect your particular environment (see Xdebug settings explained below).”
The following is in my:
C:\wamp64\bin\apache\apache2.4.51\bin\php.ini
We can dig into this more if you like but it sounds like you’re all set. Let me know if you want to dig more.
If you do want to dig more I’d be interested in what your logs (Help menu > Troubleshooting > View log file) say when you click Re-check Config in the PHP prefs and you do NOT have Directory containing php.ini set.
I am content that I can debug php again. Now I have to get my perl up and running again
Doing what you suggested (without Directory containing php.ini set)
[2022-12-05 17:31:44,934] [DEBUG] ko.launch: Response: https://community.komodoide.com/changelog/120 (0)
[2022-12-05 17:31:46,792] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2022-12-05 17:31:46,792] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2022-12-05 17:31:46,934] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:31:47,438] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2022-12-05 17:31:47,440] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2022-12-05 17:31:52,188] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:31:52,726] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:31:53,707] [ERROR] koPHPConfigurator: Unexpected compiler: Visual C++ 2019
[2022-12-05 17:31:53,709] [WARNING] koPHPConfigurator: Debugger extension for PHP version 8.1.0 (path C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\support\php\debugging\8.1\php_xdebug.dll) is not available.
[2022-12-05 17:32:03,255] [ERROR] koAppInfo: PHP command timed out: [u’c:\\wamp64\\bin\\php\\php8.1.0\\php.exe’, ‘-q’, ‘c:\\users\\vpels\\appdata\\local\\temp\\tmpsaoeq6.php’]
[2022-12-05 17:32:09,115] [ERROR] koAppInfo: PHP command timed out: [u’c:\\wamp64\\bin\\php\\php8.1.0\\php.exe’, ‘-q’, ‘c:\\users\\vpels\\appdata\\local\\temp\\tmpdivsoi.php’]
[2022-12-05 17:32:09,115] [ERROR] koAppInfo: could not determine PHP version number for ‘c:\wamp64\bin\php\php8.1.0\php.exe’:
PHP interpreter did not return in time.
[2022-12-05 17:32:14,983] [ERROR] koAppInfo: PHP command timed out: [u’c:\\wamp64\\bin\\php\\php8.1.0\\php.exe’, ‘-q’, ‘c:\\users\\vpels\\appdata\\local\\temp\\tmp3l1zda.php’]
[2022-12-05 17:32:14,984] [ERROR] koAppInfo: could not determine PHP version number for ‘c:\wamp64\bin\php\php8.1.0\php.exe’:
PHP interpreter did not return in time.
[2022-12-05 17:32:14,984] [WARNING] koPHPConfigurator: Unable to retrieve PHP version
[2022-12-05 17:32:15,466] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:32:15,546] [ERROR] console-logger: TypeError: tab is undefined (2) in viewbrowser:133
Traceback (most recent call last):
File “viewbrowser”, line 133, in
stack
DebugSessionTabManager.prototype.clearVariables@chrome://komodo/content/debugger/debugSessionTab.js:376:17
DebugSessionTabManager_sessionEnd@chrome://komodo/content/debugger/debugSessionTab.js:315:9
DBG_Session.prototype.shutdown@chrome://komodo/content/debugger/debugger.js:1267:13
DBG_Session.prototype.updateUI@chrome://komodo/content/debugger/debugger.js:1463:17
DBG_Manager.prototype.notifyDebuggerSessionStateChange@chrome://komodo/content/debugger/debugger.js:500:17
– EXCEPTION END –
[2022-12-05 17:34:32,733] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:34:33,108] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:34:39,403] [ERROR] koAppInfo: PHP command timed out: [u’c:\\wamp64\\bin\\php\\php8.1.0\\php.exe’, ‘-q’, ‘c:\\users\\vpels\\appdata\\local\\temp\\tmprv9ca3.php’]
[2022-12-05 17:34:43,796] [WARNING] prefs: The ‘phpConfigFile’ preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2022-12-05 17:34:43,815] [WARNING] prefs: The ‘all’ preference has changed while the pref window was open. If you get this message, a pref panel is incorrectly modifying prefs and the modified value will be lost.
[2022-12-05 17:34:52,336] [ERROR] koPHPConfigurator: Unexpected compiler: Visual C++ 2019
[2022-12-05 17:34:52,336] [WARNING] koPHPConfigurator: Debugger extension for PHP version 8.1.0 (path C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\support\php\debugging\8.1\php_xdebug.dll) is not available.
[2022-12-05 17:35:12,374] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2022-12-05 17:38:14,262] [WARNING] console-logger: Key event not available on GTK2: key=“u” modifiers=“control,shift” (1) in chrome://komodo/content/tail/tail.xul:0
Thanks for those logs. Looks like, as you said, Komodo just doesn’t like PHP 8. For some reason it can’t run the php.exe -q command. I’m suspect that’s not actually effecting debugging though. The more interesting error is farther down.