-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging not working because routes aren't parsed #171
Comments
Here exactly the same problem... any solution? |
Sorry, i'm currently too busy with projects to look into this issue. The Symfony debugger doesn't do anything special apart from generating the correct URL for your action I'd suggest to use the regular debugging mechanisms, see http://wiki.eclipse.org/Debugging_using_XDebug. You can simply start a debug session on |
Perfect. found a workaround based on the pulse00 post (#171 (comment)) . |
I'm having that issue with Eclipse Kepler (which I've just installed today). But in my case if I select That was not the case with Eclipse Indigo, which no only let me edit those fields, although auto-completed the Any alternativa to debug Symfony2 webapps with XDebug? |
@NelsonSR you can simply debug the project with the regular PDT functionality, the plugin only adds the convenience to generate an URL for your current controller action automatically. So just set the debugger to |
Yeah, you were very clearly about that in your past post, but my problem was that I could not make XDebug works AT ALL in Eclipse. Looking for any clue I took a read on your FAQ page (http://symfony.dubture.com/faq/). After cleaning the project finally XDebug start to work. Now, this is not a issue in regard to this plugin, just a confusion I have about XDebug on Eclipse: why it just stop the debugging in the |
sorry, i should have read the whole thread first ;)
In your debug configuration, there's an option |
I was aware of that option, but with all this configuration mess I just forget about it. Anyway, now debugging don't even starts. It just activate the internal browser. Seems like I touch something else, don't know what yet. If I activate |
So when you activate Does the request hit the script where you have set the breakpoint? |
No, I'm not using breakpoints at all, I just start the debugger on a custom Sonata Admin controller. It never gets there (which it's very frustrating). If I activate |
You need to set a breakpoint somewhere. How else would you want to debug? |
@advancingu: as far as I know, breakpoints are optional. Actually two days ago I was debugging the Sonata Admin dashboard, with no breakpoints setted (it was almost a never ending debugging process, because of its complex structure, so I had to stopped), but it did walk through many line of many files (obviously I had to press F5 a lot of times, to step in). That was on Eclipse Indigo, and setting a breakpoint never worked, so now on Eclipse Kepler I don't use them. But I'll give it a try, just to see what happens. |
Well, like I said, setting a breakpoint does not make any difference. The behavior is the same. |
Sorry, but breakpoints are not optional ;) How should the debugger know where yo want it to stop whithout having set a breakpoint? |
I understand what is the function of the breakpoints in a debugging process, but right now they are meaningless if the debugging process can not getting started. It's not important to me WHERE the debugging stops, the important thing is HOW to make it start in first place!. In my personal case, I want to debug one action class of the Vich Uploader Bundle, to see what happens with the |
I've just created another Eclipse workspace on |
Well, the debugging process starts if you run your Here's my advice:
I have to repeat myself here: If you never set a breakpoint, PDT will not stop the execution in your script at any point during a request - unless you set Also, as this is a general PDT debugging question, not really related to the Symfony plugin, please see the PDT forum on advice how to get your pdt debugging setup working. |
Well, seems like I've been wrong all this days. Apparently in the case when the debugger starts, what I actually did was set a breakpoint; delete that breakpoint starts a session but with no debugging process. Besides that, the Symfony web app wasn't working (some mess files in the Firefox cache, a cache clean up solved the problem), and an automatic URL (writing it manually solved the problem). Now I can debug simple PHP scripts as My last obstacle is to test a web app with FOS User Bundle and Sonata Admin (users stored to and retrieved from a database). I guess this is the recipe for that task: |
@NelsonSR the debug session will be active during multiple requests, there's no need to start a debugging session for each request you make. The process basically works like this:
That's it basically. So let's assume the following example: Your symfony app lives under If you setup your debug configuration to start with the url |
In the case of login forms, all the code is displayed in the I'm sure I'm missing something, but I wanted to ask before research something else about the subject. |
I've could start a debugging in the form login, but not by running the
So, apparently I have to step in along all the files involved in the login process until the login form shows up in the browser, so I can fill the login and password fields, hit the login button and I go to the Employee File form, fill the required form fields and (finally) hit the save button, to see what I really want to see. And I ask to myself: there's no exists any shortcut to debug an action method, without go through that extremely long and tedious process?. |
The Symfony debugger of this plugin simply won't work under Eclipse 4.2.2 on my system. I've tried stable plugin version 1.0.85 and dev version 1.0.94 without success.
The Symfony tab in the debug launcher (configuration window) keeps telling me that
The route MyRoute does not exist in the project MyProject
, even though I can definitely seeMyRoute
printed out on the console when runningphp app/console router:debug
. (The environment is recognized correctly in that tab.)I've also tried removing all routes except a single one in
app/config/routing.yml
andapp/config/routing_dev.yml
and it still gives me this error.How can I track down this issue?
The text was updated successfully, but these errors were encountered: