My question is very simple but I have no clue: I have always been working with java and eclipse or C# until now so it's a "new world" :)
How can I debug my laravel code?
I am using laravel and vuejs. I start my server with laragon, and I use VScode. I have tried starting it from VScode (added xdebug dll in laragon) but it doesn't give me more info, and I don't manage to debug anything using breakpoints:
{
"name": "Launch localhost",
"type": "chrome",
"request": "launch",
"url": "http://127.0.0.1/",
"webRoot": "C://laragon//www//projet"
},
{
"name": "Launch index.php",
"type": "chrome",
"request": "launch",
"file": "C://laragon//www//projet//index.php"
},
When I get an error with sql, all I get is
app.js:651 Uncaught (in promise) Error: Request failed with status code 500
at createError (app.js:651)
at settle (app.js:814)
at XMLHttpRequest.handleLoad (app.js:184)
How can I see my SQL request and get the "real error"? And how can I properly debug?
Thanks a lot in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire