Hello folks,
Not sure if anyone has run into this before.
I am currently create a web app and running into issues while debugging. I am currently using PHPStorm, XAMPP with PHP and XDebug enabled. What is happening is when I run the following: http://localhost/invoice everything is great. When I begin to debug some code the url looks like this: http://localhost/invoice/?XDEBUG_SESSION_START=12578
and I get the old:
404 ERROR : PAGE NOT FOUND
This page is being generated by the Trongate Framework.
To edit this page, go to: templates/views/error_404.php
To explore the documentation go to http://www.trongate.io/documentation
Is there something I need to due to the allow the xdebug_session_start to pass through?
Thanks, Steve
Debugging with XDebug
3 years ago
3 years ago
#1
3 years ago
#2
Hi Steve,
Trongate looks at segment 3 as a method not a query string. From memory, all query strings start at segment 4.
I know it's not ideal but you could try:
Provided your 'invoice' module has an 'index' method, which looking at your url, it does.
Trongate looks at segment 3 as a method not a query string. From memory, all query strings start at segment 4.
I know it's not ideal but you could try:
Provided your 'invoice' module has an 'index' method, which looking at your url, it does.
3 years ago
#3
Not sure if this will help you but my setup is:
Windows 10
WAMP64
Google Chrome with XDebug extension installed
PHP Storm
I navigate to localhost/NAME OF APP/
In Chrome extensions I select XDebug->Debug
In PHP Storm I click the icon that looks like an old telephone receiver next to red circle and green debug icon, it changes to indicate that PHP Storm is listening for connections from the XDebug extension in Chrome, set a break point in the PHP code somewhere I want to stop execution and start debugging, then refresh the page in Chrome.
At NO TIME is there anything but the normal URL in the address line.
Windows 10
WAMP64
Google Chrome with XDebug extension installed
PHP Storm
I navigate to localhost/NAME OF APP/
In Chrome extensions I select XDebug->Debug
In PHP Storm I click the icon that looks like an old telephone receiver next to red circle and green debug icon, it changes to indicate that PHP Storm is listening for connections from the XDebug extension in Chrome, set a break point in the PHP code somewhere I want to stop execution and start debugging, then refresh the page in Chrome.
At NO TIME is there anything but the normal URL in the address line.