本文介绍了Chrome Netbeans插件仅显示空白页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在学习AngularJS,并认为我将安装netbeans,因为它支持通过插件在chrome中进行调试.或声称至少...

I'm learning AngularJS at the moment and thought I would install netbeans as it supports debugging in chrome via a plugin. Or claims to at least...

我遵循了我发现的用户指南和教程,并且似乎总是在同一时间步履蹒跚:

I have followed the user guides and tutorials that I've found and always seem to falter at the same point:

  1. 安装Netbeans
  2. 安装Chrome插件
  3. 创建一个简单的示例项目
  4. 将默认网络浏览器设置为带有插件的Chrome
  5. 点击运行

这时,我总是看到Chrome中加载了一个空白页.我怀疑这是一个错误,因为所有在线资源似乎都可以确保我能够在浏览器中看到默认的index.hmtl页面.

At this point I always see a blank page loaded in Chrome. I suspect that this is a bug as all of the resources online seem sure that I should be able to see the default index.hmtl page in my browser...

我在MAC上运行:

我的插件版本是:

我的Netbeans版本:

My Netbeans version:

我在Netbeans中的默认浏览器:

My Default Browser in Netbeans:

有人知道运行此配置有任何问题吗?无论我做什么,当我点击run时,我只会看到一个URL变形的空白页面:

Does anyone know of any issues with running this configuration? No matter what I do I just see a blank page with a mangled URL like so when I hit run:

http://file:///private/var/folders/4l/3gq9477n6_952q1ztvz5ngdckcdyx4/T/blank2587611836421039861.html

当我在VI中打开此文件时,在其中看到一行:

When I open this file in VI I see one line in it:

<html :netbeans_temporary="true"></html>

推荐答案

这似乎对我来说是一种解决方法:

This seemed to work as a workaround for me:

  1. 打开项目配置,然后将浏览器从具有netbeans连接器的Chrome更改为Chrome
  2. 运行项目(Chrome中应显示正确的页面)
  3. 单击Chrome窗口右上角的Netbeans连接器
  4. 选择在Netbeans中调试"(您应该在窗口顶部看到黄色的信息提示)
  5. 返回Netbeans并单击调试主项目"按钮.

我的配置是os/x High Sierra,Netbeans 8.2

My configuration is os/x High Sierra, Netbeans 8.2

这篇关于Chrome Netbeans插件仅显示空白页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 00:37