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 8835565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:17:18+00:00 2026-06-14T09:17:18+00:00

I am developing a cross-domain RPC library for which I want to do some

  • 0

I am developing a cross-domain RPC library for which I want to do some unit-testing using qunit.

In order to do the testing properly I’ve setup a grunt file that launches a node.js server and phantomjs to load the test rpc.html as described here (using a server task so that different domains can be simulated, localhost and 127.0.0.1). This test opens an iframe with frame.html that mocks the RPC commands which are asserted within rpc.html.

So far all good. The problem I am encountering is that whenever a JS error occurs within frame.html it is not outputted to the console. Only errors that happen in rpc.html are shown. Although outputs of console.log() etc are working in frame.html.

Is there a way I can get all JavaScript errors to be shown that occur in frame.html, including parse errors and such?

Thank you in advance.

  • 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-06-14T09:17:19+00:00Added an answer on June 14, 2026 at 9:17 am

    PhantomJS supports onError event handlers in its page objects, so that information about JavaScript exceptions can be intercepted and handled as appropriate.

    AFAIK, you should possibly also check if loaded web-pages do not have their own window.onerror, because if they return true, the errors will be treated as handled.

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

Sidebar

Related Questions

I'm currently developing a cross-platform C++ library which I intend to be Unicode aware.
I am developing a bookmarklet, that uses a JavaScript file, on cross-domain , and
I'm currently developing a cross-platform C application. Is there any compiler macro which is
I'm developing a front-end to a Rails application. In cross-browser testing, I immediately discovered
I've choosed Appcelerator Titanium Desktop for developing my first cross-platform application, based on some
I am developing application which intend to be cross platform. I used to use
I am developing a webpage which our customers want to insert on their websites
I'm developing an Adobe Air app using JavaScript. I want to get HTML content
I am developing Palm Pre apps using the Eclipse IDE. How to setup Phonegap
I am developing a cross platform C (C89 standard) application which has to deal

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.