Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6368081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:37:50+00:00 2026-05-25T00:37:50+00:00

I have some idea with error handling in PHP – way to immediately get

  • 0

I have some idea with error handling in PHP – way to immediately get to place in code where error occurred.

I have written error handler to catch PHP errors, which loads file, that caused an error and displays +/- few lines of code from that file. It also mark line where error occurred and print stack trace, like this:

http://img834.imageshack.us/img834/3754/errh.png

Now, I have an idea, to provide some link (a href=) like other than http protocols (torrent:// or sth), like “netbeans://C:/some/file.php@110” which will put me back into NetBeans editor, open file where error occurred and put cursor in line, which caused a error.

Any ideas how to achieve that goal ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:37:51+00:00Added an answer on May 25, 2026 at 12:37 am

    What you need to do is register a custom url protocol. The techniques depend on the underlying operating system. here’s is an example for windows. By opening NetBeans with a system call and the --open [filename] argument, you can open the file in question. However, that way you won’t be able to go to a specific line.

    In order to do so, you need to use the NetBeans API. If needed, you can use JNBridge to access Java functionality from .NET languages (which you’d need for windows).

    All in all, it won’t be easy and not cross-platform. A much easier way to go is to use xDebug on the server side and implement the library in the NetBeans editor, which will allow a lot more functionality than what you currently try to accomplish (stack traces, Jumping in Code, Stepping, variable views, … – just to name a few). There seems to be a started proposal on this for the NetBeans editor.

    If you do not care to switch the editor, you can check out Eclipse PHP Development Tools (Eclipse PDT), which has the debugger already implemented. Check out this article on the setup instructions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have no idea why this is happening. I have some very straightforward code,
do you have idea, if there would be some nice way to browse/log JMS
I have some code that throws causes syncdb to throw an error (because it
I have some PHP code that should cause and catch two exceptions: try{ @$this->connector->connect();
I have some idea that it is due to some complex calculation, but i
I have some basic idea on how to do this task, but I'm not
the basic idea is that you have some class that has a reference type
I have some methods that are used by several classes. My idea was to
This is a idea for a security. Our employees shall have access to some
I have this grand idea to basically employ some brute force attack to test/verify

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.