Debug -> Listen for PHP Debug Connections
Break at firstline in PHP script ||or|| put the breakpoint where ever you want
Start the debugging and add ?XDEBUG_SESSION_START=1xxxx5 to url (you can see your debug SESSION in the $_SERVER global var)
Theres the conversation on slack:
joestrong [11:00 AM]
@withartur I already use xDebug. I've not had to disable any functionality though
withartur [11:01 AM]
And how? How you login and pass the middleware?
I new to xDebug, maybe i missing something? I do it with phpStorm IDE, not in browser
joestrong [11:04 AM]
I browse the application in the browser, and set breakpoints in phpstorm. Is that how you are using xdebug?
xdebug should call phpstorm as the php executes, it shouldn't have to "log in"
withartur [11:13 AM]
I to set the breakpoint in code, but instead of browser i have a predefined requests GET, POST that call a specific url, and in IDE i see the execution of code with variables and console that in the end show me the result of page.
Now i can try to launch it in browser how you say! Are you use phpStorm or other IDE? You set the breakpoint from IDE or with the xDebug Syntax directly in code?
joestrong [11:19 AM]
i just set breakpoints in phpstorm and browse the site
I finally figured it out.
The problem was that the route was pointing to a controller that didnt exist. A simple typo.
So this is what I did:
Created a new module using the scaffold tool named Installations
Created a new controller to /Modules/Installations/Http/Controllers/Api/InstallationsController.php
Created a new routes file to /Modules/Installations/Http/apiRoutes.php and added the file path to the getApiRoute() in the RouteServiceProvider.php
The route itself is nothing special:
$router->get('installations/test', ['as' => 'api.installations.test', 'uses' => 'InstallationController@test']);
OK thanks for the help. I now have all created manually, and also all the files in the folders migration, Entities, controller, provider, repositories, Resources configured. Is a lot of effort and it works when creating data. Unfortunately, I still have a problem with the delivery of the ID when editing and deleting. The forgets whenever I pass the value. If I've completely solved the problem. Then I add a purely tuturial.
Looks like your connection to AsgardCms was lost, please wait while we try to reconnect.