Comments (2)
So I managed to get Xdebug connected with Lando, and the log file populated as well, though it can't find the files ... it says [192] [Step Debug] WARN: Breakpoint file name does not exist: /home/username/dev/drupal9/web/index.php (No such file or directory).
in the log file xdebug.log, though it does exist.
But I feel like it's getting close, so it would be awesome if someone else could take a look at this.
.lando.yml
name: drupal9
recipe: drupal9
config:
webroot: web
php: '8.1'
xdebug: true
services:
appserver:
config:
php: ./php.ini
php.ini
I have commented out seemingly not needed config lines.
# xdebug.client_host=appserver.drupal9.internal
xdebug.client_host=localhost
xdebug.client_port=9000
xdebug.discover_client_host=true
xdebug.idekey=sublime.xdebug
xdebug.log="./xdebug.log"
xdebug.mode=debug
xdebug.remote_handler=dbgp
xdebug.start_with_request=yes
Xdebug.sublime-settings
Originally found here: https://github.com/martomo/SublimeTextXdebug/blob/master/Xdebug.sublime-settings
{
// For remote debugging to resolve the file locations
// it is required to configure the path mapping
// with the server path as key and local path as value.
//
// Make sure to use absolute path when defining server path,
// because Xdebug debugger engine does not return symbolic links.
//
// Example:
// "/absolute/path/to/file/on/server" : "/path/to/file/on/computer",
// "/var/www/htdocs/example/" : "C:/git/websites/example/"
"path_mapping": {
"/app/": "/home/username/dev/drupal9/"
},
// Determine which URL to launch in the default web browser
// when starting/stopping a session.
"url": "https://drupal9.lndo.site/",
// An IDE key is used to identify with debugger engine
// when Sublime Text will start or stop a debugging session.
//
// This package does not filter sessions by IDE key,
// it will accept any IDE key, also ones that do not match this configured IDE key.
// It is merely used when launching the default web browser with the configured URL.
"ide_key": "sublime.xdebug",
// Host address of network interface which Sublime Text
// should listen to connect with debugger engine.
//
// By specifying "" or "0.0.0.0" as host address, Sublime Text
// will listen on all the configured network interfaces.
// This is the desired configuration when debugging
// a script that is located on a remote server.
//
// Otherwise it is recommended to use "127.0.0.1" or "localhost"
// as configuration, when debugging a script on your local machine.
// Due to the fact that by listening on all the configured
// network interfaces raises a security concern as anyone
// can access Sublime Text through the configured port.
//
// When specifying host address of network interface,
// be sure to specify an IPv4 address as Sublime Text
// will listen for connections through an IPv4 socket.
"host": "localhost",
// Which port number Sublime Text should listen
// to connect with debugger engine.
"client_port": 9000,
// Maximum amount of array children
// and object's properties to return.
"max_children": 32,
// Maximum amount of
// variable data to initially retrieve.
"max_data": 1024,
// Maximum amount of nested levels to retrieve
// of array elements and object properties.
"max_depth": 1,
// Break at first line on session start, when debugger engine has connected.
"break_on_start": false,
// Break on exceptions, suspend execution
// when the exception name matches an entry in this list value.
"break_on_exception": [
// E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR
"Fatal error",
// E_RECOVERABLE_ERROR (since PHP 5.2.0)
"Catchable fatal error",
// E_WARNING, E_CORE_WARNING, E_COMPILE_WARNING, E_USER_WARNING
"Warning",
// E_PARSE
"Parse error",
// E_NOTICE, E_USER_NOTICE
"Notice",
// E_STRICT
"Strict standards",
// E_DEPRECATED, E_USER_DEPRECATED (since PHP 5.3.0)
"Deprecated",
// 0
"Xdebug",
// default
"Unknown error"
],
// Always close debug windows and restore layout on session stop.
"close_on_stop": false,
// Show information about super globals in context view.
"super_globals": true,
// Always launch browser on session start/stop.
// Note: This will only work if you have the 'url' setting configured.
"launch_browser": true,
// When launching browser on session stop do not execute script.
// By using parameter XDEBUG_SESSION_STOP_NO_EXEC instead of XDEBUG_SESSION_STOP.
"browser_no_execute": false,
// Do not use the debugging window layout.
"disable_layout": false,
// Window layout that is being used when debugging.
"debug_layout" : {
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.7, 1.0],
"cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
},
// Group and index positions for debug views.
"breakpoint_group": 2,
"breakpoint_index": 1,
"context_group": 1,
"context_index": 0,
"stack_group": 2,
"stack_index": 0,
"watch_group": 1,
"watch_index": 1,
// Custom gutter icons for indicating current line or enabled/disabled breakpoints.
//
// Do not use same icon for following values, because Sublime Text is unable
// to use the same icon for different scopes, in case there are duplicate icons
// detected it will fall back to the corresponding icon in the package.
"breakpoint_enabled": "circle",
"breakpoint_disabled": "dot",
"breakpoint_current": "",
"current_line": "bookmark",
// Path to Python installation on your system.
// Which is being used to load missing modules.
//
// It is recommended to configure your Python path for Sublime Text 2
// especially on older UNIX systems, where some modules (xml.parsers.expat)
// might be missing and could improve performance of package.
//
// Example:
// "python_path" : "/usr/lib/python2.7"
"python_path" : "/usr/bin/python3.8",
// Show detailed log information about communication
// between debugger engine and Sublime Text.
// Log can be found at Packages/User/Xdebug.log
"debug": false
}
from drupal.
Actually, since this is not a Drupal specific issue, it could get moved to https://github.com/lando/lando/?
from drupal.
Related Issues (20)
- Problem with database. I can't start the app HOT 4
- lando composer install is failing on Mac HOT 2
- Add Drupal 11 Beta
- Versions of MariaDB 10.3.x and lower do not have the mariadb command and must use the mysql executable.
- ERROR TypeError: Cannot read properties of undefined (reading 'match')
- Difficulty setting "extension=mongodb.so" value in php.ini file for MongoDB Service setup on Drupal HOT 1
- Your PHP installation is too old. Refer to the [Drupal PHP requirements] - Vanilla Drupal 9 Recipe from Lando documentation HOT 4
- Drupal 7 recipe always returns 500 HOT 8
- lando error HOT 2
- Add triage/contributor permissions for AaronFeledy HOT 1
- Drupal 10 / Nginx - Compiled assets broken with too many redirects on Drupal 10.1 HOT 2
- Problem with Drupal10 recepite default composer version HOT 2
- Lando site fails with error 'bad gateway' - Service "appserver_nginx" is not running HOT 1
- When a new release comes out, installed Lando stops working HOT 1
- Error "drupal8 is not a supported recipe type" after upgrading lando from 3.20.6 to 3.20.7 HOT 1
- Problem with Drupal s3fs module HOT 2
- Legacy Versions Drupal 6 section seems wrong HOT 1
- Step paused on "Lando drush site:install ..." HOT 2
- PHP 8.3 support for drupal-php HOT 2
- Drupal 6 test suite fails on `drush si` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal.