- This topic has 4 replies, 2 voices, and was last updated 5 years, 10 months ago by raphi.
-
AuthorPosts
-
raphiParticipantHi,
I am trying to get debug working. I am running the latest CodeMix and Eclipse Version 2018-12 (4.10.0). As Apache Server I am using XAMPP.
I tried to create a launch.json file as described in
https://www.genuitec.com/docs/debugger/debugging-in-codemix/
but when i try to start the debugger it always just opens an about:blank page in ChromeI have attached my launch.json (XAMPP runs under http://localhost so I thought that should be the url -> I also tried http://localhost/projectname) . Have I misunderstood something or do I have to configure the launch.json somehow else?
Thanks for your help!
Raphi
- This topic was modified 5 years, 10 months ago by raphi.
- This topic was modified 5 years, 10 months ago by raphi.
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorRaphi,
Sorry that you are seeing this issue with debugging.
Can you please give us some more details?
1. Is the project running fine? Once you deployed the project, if you go to that location with a browser, does the application run?
2. Can you please let us know which type of project you are debugging ? JavaScript/PHP etc?
–Swapna
Genuitec Support
raphiParticipantHi Swapna,
1. The project is running fine. Normally i type in following URL in the browser (while localhost is the xampp apache):
http://localhost/troubleticket/index.html2. In the end I want to debug the PHP code in the project. I would also like to debug the JavaScript code but I can also do that directly in the browser. But would be nice to have if I could debug both PHP and JavaScript Code directly in Eclipse.
So my webRoot I think should be ${workspaceFolder} cause the index.html is directly in the root of the project.
As URL I tried to use http://localhost and http://localhost/troubleticket and http://localhost/troubleticket/index.html but it still opens about:blank
support-swapnaModeratorRaphi,
Thank you for the details.
Please note that Chrome launch is for debugging JavaScript and not for PHP.
Here is the tutorial which details working with PHP and debugging in CodeMix : https://www.genuitec.com/docs/web-apps/modern-web/getting-started-with-php-in-eclipse/#DebuggingHope this helps. Please let us know if you have any further questions.
–Swapna
Genuitec Support
raphiParticipantHi Swapna,
thanks for the link. I got PHP debugging working now.
Just to inform you i did not have to create any launch.json (and it also didn’t work).
Eclipse 2018-12 automatically listens to Xdebug. I just had to deactivate Window –> Preferences –> Debug –> “Break at First Line” cause every PHP Script stopped at the first line.Maybe you should have a look and adjust your documentation.
Greets,
Raphi -
AuthorPosts