Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Debugging with IDE debugger?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1824 Views
  • pouderStream
    Avatar
    Community Member
    33 Posts

    Debugging with IDE debugger? Link to this post

    Is that possible? (I tried on first tutorial with Page.php for starting point)
    I'm using phpEclipse with DBG(ubuntu box), and it write on the begining complaining that it can't find SiteTree class. Witch is logical since it is not included in file.
    Should I choose some other .php file from core folder maybe? Stack trace would be grat.

    Tnx ;)

  • Anonymous user
    Avatar
    22 Posts

    Re: Debugging with IDE debugger? Link to this post

    Good question. Here at SilverStripe we don't use a PHP debugger so we don't have much experience with what you're asking for.

    However, have a look at this, particularly the bit about error-handling:

    http://doc.silverstripe.com/doku.php?id=error-handling

    This is what we use internally and it works for us.

    cheers,

    Brian

  • pouderStream
    Avatar
    Community Member
    33 Posts

    Re: Debugging with IDE debugger? Link to this post

    I'll take a look and be back, tnx.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Debugging with IDE debugger? Link to this post

    You could try visiting URLs of this form with your debugger:

    sapphire/main.php?url=home/
    sapphire/main.php?url=about-us/
    sapphire/main.php?url=admin/security/

    Those are the URLs that mod_rewrite turns all the requests into. By visiting sapphire/main.php, you can ensure that the class autoloader works properly

    1824 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.