facebook

Debug with CodeMix and Eclipse

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #608308 Reply

    raphi
    Participant

    Hi,

    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 Chrome

    I 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, 2 months ago by raphi.
    • This topic was modified 5 years, 2 months ago by raphi.
    Attachments:
    You must be logged in to view attached files.
    #608313 Reply

    support-swapna
    Moderator

    Raphi,

    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

    #608316 Reply

    raphi
    Participant

    Hi 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.html

    2. 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

    #608317 Reply

    support-swapna
    Moderator

    Raphi,

    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/#Debugging

    Hope this helps. Please let us know if you have any further questions.

    –Swapna
    Genuitec Support

    #608324 Reply

    raphi
    Participant

    Hi 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

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Debug with CodeMix and Eclipse

You must be logged in to post in the forum log in