Here in my case I am using Wi-Fi, hence I set a least InterfaceMetric value to Wi-Fi. Make sure your primary internet-connected network adapter has a least InterfaceMetric value. ![]() Run the following command to get the network adapter details and their priorities Get-NetIPInterface -AddressFamily IPv4 | Sort-Object -Property InterfaceMetric -Descending If it is not resolving the, it means the container is not able to connect to internet to download a debugger. In the command run the following command and see if it is resolving. To understand more, connect to the container which you want to debug through Visual Studio code and attach shell. However I have faced the following error even after following the same steps. Here is the Siteore documentation on how to debug a Sitecore application/code running inside docker containers. Thrown in C:\wordpress-develop\src\wp-includes\class-wpdb.You might face this error while trying to debug code running in docker container of your Sitecore instance using Visual Studio #5 C:\wordpress-develop\src\wp-login.php(12): require('C:\\wordpress-de.') #4 C:\wordpress-develop\src\wp-load.php(55): require_once('C:\\wordpress-de.') #3 C:\wordpress-develop\wp-config.php(113): require_once('C:\\wordpress-de.') #2 C:\wordpress-develop\src\wp-settings.php(124): require_wp_db() #1 C:\wordpress-develop\src\wp-includes\load.php(562): wpdb->_construct('root', 'password', 'wordpress_devel.', 'mysql') #0 C:\wordpress-develop\src\wp-includes\class-wpdb.php(769): wpdb->db_connect() Select Start Debugging from Run menu (below is my stack trace) Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\wordpress-develop\src\wp-includes\class-wpdb.php:1978 Start my VSC editor and loaded files from c:\wordpress-develop\src. Now I can debug using VS code and I changed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |