How do I use Chrome extension in WebStorm? - webstorm

I making web using React in VSCode.
In VSCode, I can configure the debug configuration, which is executed by pressing F5.
launch.json…
"runtimeArgs":
"--remote-debugging-port=9222"
I want to have the same effect in WebStorm. How can I do this?

You can specify Chrome command line arguments (like --load-extension) in Settings | Tools | Web Browsers and Preview: select Chrome there, click Edit on the toolbar and type the required keys in the Command Line Options field of the Chrome Settings dialog that opens.
For information about debugging React apps in WebStorm, see https://www.jetbrains.com/help/webstorm/react.html#react_running_and_debugging

Related

To change the browser of localhost/phpMyadmin in WAMP

I have installed WAMP. But at the time of installation me selected internet explorer as default browser for opening localhost.Now my browser(internet explorer) is not working properly,so I have to change the browser to google chrome.What are the steps to follow to do the same?
This is an already answered question on this site
By the user: Sonal
and also here
By the user: Buru
I thought it would not work because those answers are from 10 and 5 years ago, but it does.
Just in case, I will use that answer adding some details:
Open C:\wamp or C:\wamp64 in Windows Explorer (or wherever you
installed wampserver)
Open wampmanager.conf file in a text editor
Find the section [main]
Find the following line:
navigator = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Replace it with the location of the desired browser (firefox in this case):
navigator = “C:\Program Files\Mozilla Firefox\firefox.exe”
Save the the file
Restart WAMP with right click on the tray icon and selecting
'Refresh'. Then your default browser should be changed.

How to prevent WebStorm from opening a new Tab on rerun?

Each time I restart a Run/Debug Configuration, WebStorm opens a new Tab in Chrome, which is extremely annoying. Instead it should rerun the same configuration and use the same tab.
The WebStorm-debug-config documentation says, that you need to explicitly allow such behavior by setting the Allow running in parallel checkbox, which is off in my configuration.
Is there something else I am missing to prevent WebStorm from opening new tabs?
I am using the latest Chrome and Webstorm version on Windows
I had the same problem and could not find the right settings in Webstorm,
but if this is an option you could install, for example, chrome extension: "Clutter Free - Prevent duplicate tabs". It will prevent Webstorm from opening a new tab with the same URL.
In the Clutter Free settings also check the "Refresh existing tab" this way when you rerun your app, the changes in the code will be shown, but extra tabs will not open.
The solution is far from ideal, but it is better than the annoyance.

Running Imacro From Script on Webpage (Not the plugin)

I am trying to run Imacro on my works intranet. I have installed the Firefox plugin, the IE plugin the Chrome plugin. I have also installed the trail version of Imacro.
Basically what I need to do is to kick off a imacro script from a button click, I do not want the user to have to open the plugin and choose the file from the plugin window. The users WILL have the plugins, but I just want it to kick off from a html button click.
But the problem is all the examples say iimPlay(..) but iimPlay is undefined in all browsers, even after everything is installed (I cant find a imacros.js file to reference)
I want to be able to store the macro (.iim) file inside a directory on the webpage, and then run iimPlay() from a js file stored on the same webpage.
Is that possible?

ColdFusion 9.0.1 trouble adding hot fix

I'm trying to add the cumulative hotfix to ColdFusion 9.0.1. The instructions say to click on the 'i' in CFAdministrator and In the "Update File" text box, browse and select chf9010004.jar located under CF901/lib/updates.
The issue seems to be that whatever browser plugin that is being used is no longer supported by the current JRE version. Is there a way to manually add the hotfix without this step requiring to use the Java file browser?
In Safari the Java file uploader plugin says java out-of-date even though I'm running the latest version.
In Chrome a message comes up that says This site uses a plugin JAVA (TM) that will soon be unsupported. The plugin seems to load, but never goes past saying retreiving initial directories
Do not use the Browse Server button, just type the full path to the extracted chf9010004.jar file into the Update File text box then click the Submit Changes button.
The path should be something like:
C:\directory_where_you_extracted_the_zip\CF901\lib\updates\chf9010004.jar

I could not launch Php files using Aptana Studio 3

I recently downloaded the Aptana Studio 3 and installed it on my computer..I also configure the webserver in aptana by navigating in window > preferences > webservers, and then i click new button i choose "external web server". then filled all fields ,
Name:WampSerever
Base URL://localhost
C:\wamp\www
Start Command: NET START wampapache
stop Command: NET STOP wampapache
After that, when i am going to test my php by clicking the green button above in the Aptana Studio select "Run firefox-Internal Server"...the firefox open but it displays blank page...
This is what is displayed in the URL
http://127.0.0.1:8020/TestAptana/Hello.php
If your code is correct then try this. I use XAMMP as my server so I'm not sure if this will work with WAMMP.
Go to run configurations select Web Browser then choose which browser you want to use. Then in the main tab under Server find "Use base URL" and click on it. Enter http://localhost/ and make sure that you check the "Append project name".
Make sure that your index page's name is index.html or index.php if you are using php and try running it.
I have this problem too, but one additional thing you need to is to set the path for PHP.exe.
Do this by going to Preferences/Aptana Studio/Editors/PHP/PHP Interpreter. Add and fill in blanks (browse) to php.exe.