Degugging a react native / expo app with webstorm - webstorm

I can't debug my react native / expo app in WebStorm, but I can in Visual Studio Code.
I have a react native app that I can successfully run using expo. I set up the configuration according to the info on this site:
https://blog.jetbrains.com/webstorm/2018/02/webstorm-2018-1-eap-181-3263/#debugging-expo
When I click "run" or "debug" and "Debug JS Remotely" is turned off, the bundler builds a JS bundle and the app starts on my devices.
But once I turn on "Debug JS Remotely", the bundler only says:
Starting custom debugger by executing: : [my working directory] [my working directory again]
and never goes on to build the JS bundle.
After a short while, a red screen appears on the device, and it says:
Unable to connect with remote debugger
Timeout while connecting to remote debugger
onFailure
DevSupportManagerImpl.java:851
onFailure
WebsocketJavaScriptExecutor.java:83
run
WebsocketJavaScriptExecutor.java:142
handleCallback
Handler.java:790
dispatchMessage
Handler.java:99
...
The bundler doesn't say anything more than the message above.
As soon as I turn off remote debugging, the the bundler starts building again and finishes with
"Building JavaScript bundle: finished in ...ms"
as usual, but the device, again, shows the red screen with aforementioned messages, or doesn't show anything but the regular white screen with a message at the bottom saying "Downlading JavaScript bundle 100,00%". I either have to stop and restart within WebStorm or I have to close the expo app and re-open it. Either way will make the app start again on my device.
This is my first time working with javascript, react native, expo, so I am not sure, but it should be possible to debug in WebStorm directly, right? As mentioned, in Visual Studio Code everything including debugging works fine, so I don't think it's anything in the code. Maybe someone here has an idea where the problem lies?
node -v: v11.6.0
react-native -v: react-native-cli: 2.0.1, react-native: 0.57.1
Any help will be greatly appreciated! Thanks in advance!

PROOF
HOWTO
Looks like there's been an update to how you can setup Configurations since you tried.
Try changing the Bundler host to 127.0.0.1 and try again.
I just setup Webstorm v2020.2 yesterday to debug my Expo application and it is working as expected.
These instructions were all that I required: https://www.jetbrains.com/help/webstorm/react-native.html#ws_react_native_create_run_config
On the main menu, go to Run | Edit Configurations, click icons.general.add.svg and select React Native from the list. The Run/Debug Configuration: React Native opens.
Choose whether you want WebStorm to build and launch the application for you:
Select the Build and launch checkbox if you are launching your application for the first time or if you have updated its native code since the last run.
If your application uses Expo, clear the checkbox because this bundler takes care of the process itself.
If you selected the Build and launch checkbox, choose the target platform, Android or iOS. Depending on your choice, WebStorm will run the bundler with react-native run-ios or with react-native run-android.
Optionally, type the arguments to be passed to React Native, for example, specify the simulator type through the ‑‑simulator flag: ‑‑simulator="iPhone 4s".
In the Bundler host field, specify the host where the React Native bundler runs, the default value is localhost.
If you are using Expo, change the default bundler host to ensure successful connection with the debugger. This connection may fail because WebStorm by default uses localhost to start debugging while Expo expects 127.0.0.1 or an external IP address depending on what is selected in Connection field of the Metro bundler configuration. See Debugging a React Native application that uses Expo for details.
In the Bundler port field, specify the port on which the React Native bundler runs, by default 8081 is chosen, learn more from the React Native official website.
Choose the Node.js interpreter to use. This can be a local Node.js interpreter or a Node.js on Windows Subsystem for Linux.
Specify the path to react-native-cli and the working directory of the application. Optionally, type the environment variables for react-native run-android or react-native run-ios.
By default, WebStorm starts the React Native bundler automatically when you invoke the run/debug configuration. If you have already started the bundler from outside WebStorm, for example, from the command line, you can re-use it without stopping and restarting. Select your bundler in the Before Launch area and click Remove.

The issue is tracked at WEB-35719, please follow it for updates

Related

Can Windows Application Packaging be used to package a console web app?

I have a solution that creates two applications: an ASP.NET Core Web Console App (server) and a UWP app (client). Both installers are created using Windows Application Packaging Projects using sideloading. Building and testing the client and server apps are functioning as expected. Deploying (installing) the client and server apps on desktop PCs also seem to function as expected. However, when it comes to running the apps, only the client seems to be working as expected. When launching the server (console web app) it displays a console window then disappears immediately.
Since this is a console app, I opened a command prompt and changed directory to where this application is installed (C:\Program Files\WindowsApps\AppName). I attempted to run the console app from the command line and I got the message "Access Denied". Assuming this directory is locked down by the system, I decided to to test the console app functionality by copying the directory from C:\Program Files\WindowsApps to C:\Temp. I then changed directory to C:\Temp and attempted to run the program. It runs as expected. So there seems to be nothing wrong with my console web app other than it cannot run if installed in the WindowsApp location. I tried searching for information regarding using Windows Application Packaging to package console apps but I didn't have much luck. Would it help to add and app.manifest and set the "requestedExecutionLevel" to "requireAdministrator"? Should I use a different type of packaging for the console Web App?

GoCD - Task Plugins not adding tasks

I have setup a GoCD server and agent (on a Windows machine if that matters). I am using it to build a .NET application. I have installed a few Task plugins (Powershell, Xunit-converter) and when I restart the server I see those as loaded and installed without issue in the plugin admin screen.
However, when I go to create or edit a job, I do not see these new tasks in the "Add Task" dropdown. I can get around the powershell one by using a Custom command, but I need to be able to convert my MsTest ouptut to Xunit so that it can display the results in the Test Results Tab.

Can i check emulator is running and one specific application is insatlled in emulator or not?

I am new at mobile automation testing and now i want to create a one type of framework for android application testing that in before method it will check for if emualtor is ruuning or not? if not then launch the emulator and second specific application is installed or not(example: facebook) if facebook is installed then launch that application.
I am using appium for testing. Can any one suggest me what shuold i have to do?
Thank you in advanced.
First of all appium cannot automate pre-installed apps from play stores. You should have a ".apk" file to install it.
Secondly, appium cannot automate bringing up of emulator, however a way to do it is through the use of script of adb commands.Check through the adb command if any device is active
adb devices
If it is not then you can start your emulator using the emulator commands of adb.
For complete adb commands reference.
http://developer.android.com/tools/help/adb.html.
Lastly you can use different modes of appium like "--full-reset" for re-installing the app even if it is pre-installed or simple "appium" will start the ".apk" which was once installed by it.
Check all the modes here - "github.com/appium/appium/blob/master/docs/server-args.md"
For other basic queries, visit - https://github.com/appium/training

Ember Inspector won't detect application using Grunt

I'm currently digging into Ember.js, using Yeoman as an automation tool for project deployment. Since Grunt is already included in Yeoman, I'm using it to fire up a Grunt Server everytime I'm working on my project.
I just started my very first Ember.js project using Yeoman when I realized, that Chrome's Ember Inspector Extension isn't able to detect my application as an Ember.js app when I'm running my Grunt Server at localhost. I've already checked the "Allow access to file URLs" option within the Extension settings, still no detection.
When I work on the project without running the Grunt Server, Ember Inspector detects my application immediately.
Any solution how I can use the Inspector while running Grunt?
Change your grunt to run on port 80.
Honestly it might be a problem localhost not being allowed with the extension, but I have a hard time believing that. Can't connect to localhost from Chrome extension

How to get start with Appcelerator Titanium

I am very new to Appcelerator Titanium. I followed the instructions and could able to successfully install the software and android sdk(only android for the time being). But as the site suggested when I tried to import and run the KitchenSink, I can see nothing on my emulator. It is not running. What will be the issue?
Or are there any other simple project ? Please help me
Regards
KitchenSink is some heavy application.
So start your emulator and then run project from Titanium Studio, wait for some time. If it is not running after this, check your android SDKsetting (Window->Preferences->Titanium Studio->Titanium)also check your java environment variable setting.
When your application setting will get properly done, your application will definitely execute.