I have webview/iFrame inside electron framework. I want to debug the code inside the iFrame.
I launch electron app with debugger windowas shown in the picture.
I want to debug the content that gets loaded.
In your renderer script, get the webview and open its devtools. You're opening the devtools of the renderer that contains the webview.
document.querySelector("webview").openDevTools();
Source
Related
I'm using Visual Studio for Windows to test a Xamarin Forms app on Android. Now I want to test it on an iPhone as well, which is possible by connecting the iPhone to my Windows system and using Xamarin Hot Restart.
The app is deployed on the iPhone, but when I tap on the icon it starts for a brief moment and then it closes (like it crashes). Looking at the link sent here earlier, in the Limitations section, the cause of this issue might be described there:
"Storyboard and XIB files are not supported and the app may crash if it attempts to load these at runtime. Use the HOTRESTART preprocessor symbol to prevent this code from executing."
I do have a Storyboard and I think an XIB file, but I have no idea how to prevent it from loading. The storyboard is called in info.plist only and the XIB extension is called in the .storyboard file.
LaunchScreen.storyboard
Info.plist
The usage of the preprocessor symbol HOTRESTART is only for C# I believe. My question thus is: how can I use the processor symbol HOTRESTART to prevent the loading of storyboard and XIB files?
I'm struggling to get drag & drop functionality to run in Electron when it wraps Next.js. I follow an official Electron tutorial on d&d and base my code on an example in the official Next.js repo. I was able to get d&d working in a quick start Electron app after following the steps described in an official example.
The issue I'm having is that when I drag a file outside of an Electron application to Finder, only a .fileloc or .webloc file is being dragged, not the file I send with sendDrag.
I'm not sure why is it happening. Could it be that d&d out of Electron is supported only when the browser window loads a file with loadFile, not a url with loadURL? In that case, I'm not sure how can I run exported html Next.js files without a server...
Alright, turned out I forgot to add event.preventDefault(). This is the commit with the fix https://github.com/cbrwizard/nexj.js-with-electron-typescript/commit/e3fba369287c7506263c36db36ada0c61246808b#diff-5a46010a5570ab7e32855454c53ccc06bd1f7b08e2099db4ff3a3f0c584e3f05R31
I am trying to create a watchOS app in an existing Xamarin Forms application in Visual Studio 2017 on Windows. I have followed all the steps listed here. I have also added watchOS app project reference to the main iOS app by selecting add reference option of the references node of the main iOS app. Solution also builds successfully but when I try to launch watchOS app in watch simulator, it instantly throws the below error without even launching the simulator.
Error:
Main iOS app couldn't be found, please make sure you've created an iOS app and it is referencing
Please suggest what I am doing wrong.
I think you have add the watchOS app reference in a wrong place.
You should add the reference in xxx.iOS projecct instead of xxx(xamarin.forms project).
Let me show a screenshot for you:
Update:
Steps:
I create a new MobileApp(Xamarin.forms) project(platform iOS).
Right click on the solution -->add --> new project -->Apple Watch -->watchOS app-->ok.
Right click on the xxx.iOS project --> add---> reference --> check XXX.watchOSApp
Right click on the xxx.WatchOSApp --> Set as Setup Project.
(Clean and rebuild) Run on the appleWatch simulator.
I recently built a JavaFX app using Eclipse on Ubuntu 14.04. It works fine. However when I run the app on Windows, the app window doesn't render properly (only the border and title of the window appear, and the inside is a copy of the background). I thought that it may be the fxml so I opened the project in Windows in Eclipse and downloaded Scene Builder 8.0.0 64bit to open the fxml. But when trying to install Scene Builder the same thing happens as with the app. The window does not render properly, the inside is just a copy of the background, and only the title and borders are visible. What's going on?
UPDATE: When I run the executable jar rather than the .exe installer,I get the following output: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
The same problem happens: the window doesn't render properly.
I've got an old flex builder 3 project that I imported into Flash Builder 4, and I want this project to run its web applications in my web browser. However, the apps persistently run in the Flash Player instead. This is causing no end of problems because of the flash player bug documented at https://bugs.adobe.com/jira/browse/FP-209.
How can I make a project's apps run in the browser instead of the player?
This issue can be caused by HTML generation being disabled. In the project property panel:
Screen Shot of the settings http://img685.imageshack.us/img685/1487/screenshot20100422at124.png
In your debug configurations, make sure that the url or path to launch points to the html file that the swf is embeded in, not the swf itself. You can reach the debug configuration menu by clicking the little arrow next to the debug bug icon... (and probably some other way, but i always use that menu).