Skip to content

Commit 0f1f277

Browse files
committed
debugging
1 parent 0a5ab90 commit 0f1f277

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,18 @@ public static function get_bin_path(): ?string {
408408

409409
$bin = Utils\is_windows() ? 'wp.bat' : 'wp';
410410

411+
wp_cli_behat_env_debug( 'Searching for WP-CLI binary...' );
411412
foreach ( $bin_paths as $path ) {
412413
$full_bin_path = $path . DIRECTORY_SEPARATOR . $bin;
414+
wp_cli_behat_env_debug( "Checking path: {$full_bin_path}" );
415+
wp_cli_behat_env_debug( 'is_file: ' . ( is_file( $full_bin_path ) ? 'true' : 'false' ) );
416+
wp_cli_behat_env_debug( 'is_executable: ' . ( is_executable( $full_bin_path ) ? 'true' : 'false' ) );
413417
if ( is_file( $full_bin_path ) && is_executable( $full_bin_path ) ) {
418+
wp_cli_behat_env_debug( "Found at: {$path}" );
414419
return $path;
415420
}
416421
}
422+
wp_cli_behat_env_debug( 'WP-CLI binary not found in search paths.' );
417423

418424
return null;
419425
}

0 commit comments

Comments
 (0)