My current understanding is that the problem was caused by the fact that my project only encompassed a plugin directory while the page I was debugging was generated by many php files outside the project directory.
The fix took just two changes to PHPStorm preferences:
- Go to
PHPStorm > Preferences > Project Settings > PHP > Debug
and disableForce break at the first line when no path mapping specified
. - Go to
PHPStorm > Preferences > Project Settings > PHP > Servers
and disableUse path mappings (select if the server is remote or symlinks are used
.
With those two changes, it all seems to be working perfectly fine.
Related Posts:
- error_log() output for print_r() appearing on page
- Utilize WP-CLI from inside WordPress, not SSH
- Same log message keeps on printing to debug.log file thousand of times
- How to find error in my code when the error message is pointing to WP core file?
- “Undefined index” error when saving empty array with checkboxes
- Hooks for post saving make a post-new.php to load latest post’s data
- File is executed twice if plugin is activating
- How to identify which php file a plugin is using on page load?
- I’m writing my first plugin and my echo output is showing up on every page of my wordpress installation
- When to use Exceptions vs Error Objects vs just plain false/null
- WordPress URL Rewrite not working
- simple wordpress ajax plugin not working when not logged in
- Saving metabox repeatable fields
- how to create and show sessions in word press?
- Loading page template into shortcode
- do not show web page section when using advanced custom fields pro
- How to get all existing post types
- New Plugin Review
- Create custom blocks for bootstrap
- Query String being Removed Creating a Pagination Issue within a Custom Plugin
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Preferred Method of debugging a wordpress SQL calls?
- Huge debug.log because of “undefined offset in media.php”
- WordPress Scheduled Event Request Blocking
- PHP Fatal error: Uncaught mysqli_sql_exception: Table doesn’t exist in wordpress/wp-includes/wp-db.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]
- Saving an array of dynamic repeater data as post_meta
- WordPress wpform plugin submit and get multiple checked value from checkbox [closed]
- Improve page speed loading using CDN and async or defer attribute
- XAMPP-VM Mac OS Mojave wordpress debugging using XDebug
- Script to browser problem PHP
- Store a default value for a transient on plugin activation
- How wp-cron can run in background if PHP is single threaded?
- wp query foreach deleting record returning only first or last item
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- WordPress Custom field Colors
- Is it save to use eval for a jQuery callback method coming from the database?
- Scheduling an event inside plugin class is not working
- How to Change CSS Colors from Custom Plugin Settings Page
- Passing the name of selected color from the custom component to `render_callback`
- Any ideas why I am getting “I’m getting “wp-admin/admin-ajax.php 401 (Unauthorized)”
- Cant register rest routs from class instance
- wordpress frontend editor to add extra css to website
- Action Hook Inside WordPress Plugin Shortcode
- PHP: How to access db the right way in plugin?
- select a single val though a table in wordpress
- WordPress – Get Posts with Category data
- How to use wp_send_json() and output the value with ajax?
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Is it possible to access admin-ajax.php using PHP?
- Call to “admin_notices” hook from a static method
- How to Create custom block for displaying information in content section which act like shortcode
- How to detect and handle the time difference between server and user in WordPress?
- How to setup the Email piping in WordPress plugin?
- Reliable way to add nonce to HTTP Header in WordPress?
- Getting an error when my plugin is updated, but the files update correctly
- Creating a POP Alert
- ssl redirect function is not working
- WordPress Plugin Development – get_option error
- how to add new PHP page in WordPress plugin
- How can I get my WordPress plugin to receive data and relay it in an ajax/php request to a remote server that requires authentication?
- code that I can run, or a plug in to show what sql tables something pulls information from
- Automatic email message after manual user approval
- Constant expression contains invalid operations plugin class properties visibility
- Display attached images of a page or post that are insetred using gallery
- overwrite wordpress gallery with custom gallery shortcode
- Gutenberg blocks shortcodes compatibility
- Enqueue sripts and styles only if function is called
- Add widget area from visual editor
- Save custom field on WP_List_Table
- Load script and styles using an array of resources
- Register/enqueue scripts only on certain admin pages
- Input field duplicates on form submit by jQuery
- (Xdebug Profiler) Why are there two cachegrind files generated for one page?
- Stripe button is not working in a template page
- Unable to pass variable to database
- Gravity Forms Marketo Plugin Feed [closed]
- INCOMING: Wall of code for form and $_POST, not updating custom field’s value
- Add custom filter to register data in array
- WP multisite network plugin fails to see classes loaded with spl autoload
- WordPress won’t display errors at all
- Warning: Cannot modify header information (with a twist)
- AJAX & PHP | Call a specific PHP function from a PHP file via AJAX?
- What is this mark for “? function()” [closed]
- How to edit the default database of WordPress [closed]
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- WordPress White Screen Error
- using a shortcode in a hyperlink
- Check user last login date
- Transate plugin with js & wp_localize_script
- WP Custom tables query
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- Custom taxonomy with page post type – WordPress
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- Too few arguments at registering new templates in my plugin
- I want to lists posts in wordpress to nearest location entered by the user
- Displaying custom meta box value in a custom post page
- Create a custom plugin with dynamic child pages listing database records
- Internal server error when enabling Multisite in WordPress