JavaScript debugging with Chrome on Ubuntu changes profile for all of Chrome

I'm new to JavaScript debugging in Chrome so its very likely I didn't do what i was supposed to do but i was following how to debug my Angular application with IntelliJ. I followed the instructions in an IntelliJ blog and documentation. I chose chrome for the debugging. I made no other modifications to configuration and as expected a Chrome window appeared that looked like a fresh install. Great, it wasn't using my default chrome profile and after installing the IntelliJ plugin, i can debug my app.

Fast forward an hour or two after finishing debugging and closing the Chrome used for debugging, I reboot my computer and open my personal chrome tabs and all i get is the version of Chrome that looks like the one used for debugging. My tabs are gone, my settings are gone, my plugins are gone. I looked at the Chrome process and it has a reference to "--user-data-dir=/home/aaronloes/.IntelliJIdea2017.3/config/chrome-user-data-debug". I looked in my ~/.local/share/application directory at all the Chrome application files and all of them (including those for google docs, drive, youtube, etc) are now have "--user-data-dir=/home/aaronloes/.IntelliJIdea2017.3/config/chrome-user-data-debug" in them. I can get my normal Chrome experience back by running "google-chrome" from the command line but I do not know how to get my application links to return to normal.

Did I miss a step? This doesn't feel like something IntelliJ should do normally. Is this because I installed the IntelliJ plugin into my default Chrome profile (less likely) or because of something IntelliJ did starting up Chrome?

I'm using IntelliJ 2017.3 Ultimate

0
4 comments

Since 2017.3, WebStorm uses Chrome protocol with --remote-debugging-port option for debugging by default. Debug session is started in a new window and using new custom profile because it's required to run chrome with --remote-debugging-port argument, and a port for debugging can't be opened after browser is started.

You can modify Chrome settings in Settings | Tools | Web Browsers to launch Chrome with your own user data - see https://www.jetbrains.com/help/webstorm/debugging-javascript-in-chrome.html, Starting a debugging session with your default chrome-user-data

If you like to debug with extension, as before, attaching debugger to your running Chrome instance, please enable Update application in Chrome in Settings | Build, Execution, Deployment | Debugger | Live Edit

0

I'm not sure you understood what i was saying. I am fine with how the debugging with chrome is setup in intellij. however, the act of debugging with chrome change the default profile for all of chrome. meaning i cannot use chrome for my personal browsing anymore. my tabs are gone, my bookmarks are gone. just opening up chrome to use as a browser no longer has my default profile because some how using it as a debugger with intellij changed it.

0

> however, the act of debugging with chrome change the default profile for all of chrome

It definitely doesn't. It starts Chrome with custom user data, but doesn't make it a default profile, neither it modifies your current user data in any way

0

then maybe its a problem with chrome on ubuntu itself because this definitely did happen. every OS link to open chrome, docs, drive, etc. now are referencing "--user-data-dir=/home/aaronloes/.IntelliJIdea2017.3/config/chrome-user-data-debug" and i dont even use the links for docs, drive, etc. only chrome. I'll probably just have to uninstall and reinstall and maybe i'll test it out to see if it happens again. see if its repeatable

0

Please sign in to leave a comment.