koScintillaSchemeService: applyScheme:: no indicator for name ‘collab_remote_cursor_4’ I added the console.log(the_sel) command and this is what I observe in the log file (pystderr.log) after executing the script: I copied and pasted directly your example text (foo CAMIÓN foo) in my text document but still it does not work. Īlternatively, using the "easy Xdebug" extension for Firefox or the Xdebug helper for Chrome, you can initiate an Xdebug session with one click, instead of having to add the query string.Thank you for all the suggestions. In Drupal, add the query string: ?XDEBUG_SESSION_START=1. To debug in Komodo, make sure Debug > Listen for Debug Connections is enabled. These (among others) may also be useful to add to. htaccess in your Drupal root or a parent dir: php_value xdebug.remote_enable onĪgain, with Xdebug version 3 onward use: php_value xdebug.mode debug #if you want also: xdebug.start_with_request = yes With Xdebug version 3 onward use: zend_extension=/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/xdebug.so After verifying the location of xdebug.so, add the following to your php.ini file (or perhaps /etc/php5/conf.d/xdebug.ini, depending on your operating system): zend_extension=/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/xdebug.so Make sure to restart apache after making these changes to php.ini. Make sure Zend optimizer is OFF in MAMP preferences. Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/ (final dir name may vary by PHP version): MAMP + Komodo IDE + Xdebugįor my version of MAMP I copied xdebug.so to the following dir Half of the code is already in Komodo when you start with module development. This will make it much easier to create new modules. ' should be checked.īe sure to check out the Drupal for Komodo module. Komodo Edit can remove unused white spaces. Be sure that it's checked and that the value is set to 80. Here you'll see the option for 'Draw the edge line column'. Search in the Preferences window for 'Smart Editing'. Komodo Edit is not able to limit the comment length but it can set a line on the 80th char. Be sure that both values are also 2 for the PHP language in the drop down. Open the Preferences window (Edit > Preferences). Those are the settings that will be explained here. The default way of coding with Drupal is using 2 spaces, not using comments longer than 80 chars and don't leave unnecessary spaces in the file. Some of the standards can be met by configuring Komodo Edit. There are a ton of things you'll have to keep in mind to keep your code to the standards of Drupal. That's it - Komodo Edit will check your syntax and recommend/auto-complete for all php and Drupal functions as you type. The PHP line should read "PHP Syntax Checking:Ready". The Komodo project file allows for other helpful features such as project specific coding standards (see below) where you can configure special indenting and file saving preferences for a specific Drupal project (Drupal 6 settings and Drupal 8 settings perhaps).Īfter you've set everything right, restart Komodo Edit and click on the "Help > Check Configuration". Once the project has been created Komodo will scan your Drupal source to populate it's code intelligence database without having to add PHP Directories in your preferences. You can also create a Komodo project in your Drupal projects root directory (Project > New Project). I only added Drupal 7 because that's the version I'm working with the most. Go into Configure PHP, and you'll want to add the Drupal directory or your site directories under "PHP directories". This will open a screen, click on the config icon on the same line as PHP. Launch Komodo Edit and go to the preferences of the PHP language (Edit > Preferences > Languages > PHP) or click on "Check Configuration" (Help > Check Configuration). Then, download the version of Drupal that you're using on your site(s) - or if you keep mirror copies of all your Drupal sites on your local machine already, then you could use those instead and pick up all the available functions. Make sure to install the same version that you run on your server. If you want to enable syntax checking and auto-completion for standard PHP and Drupal functions in Komodo Edit, here's what to do:įirst you need to download and install PHP on your local machine (if you haven't). Code Intelligence / Completions and Syntax checking Second is configuring Komodo Edit so that it's inline with the code standards. First you can enable the syntax checking for both PHP and Drupal. There a few things you can change in Komodo Edit to keep you Drupal coding clean. Komodo Edit is a free, open source editor and cross-platform (no more supported by Activestate, so it's possible that this doc is outdated).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |