I'm new to Intellij IDE and I was wondering if it's possible to debug Chrome extensions within the IDE.
I can start Chrome debugging session from the IDE, but I can't set any breakpoints.
The problem, if I understand it correctly, is that Chrome moves the JS files to the profile directory when I install the extension, so Intellij can't monitor them anymore.
It is not possible right now. Actual problem — IDEA tries to connect, but special chrome extension page should be used. Vote for http://youtrack.jetbrains.com/issue/WEB-9708
Related
I implemented a simple Javascript function, which allows the audio to be paused or start depending on if the window where the script runs is focused on or not, and it works on the web.
However, I noticed an issue when I try to implement it in android studio, even after enabling the JS as seen in the screenshot. Indeed, when I get out of the app, the sound is still running whether I click on the back or the home button.
I'd like to add as well that I'm a total beginner in the android studio IDE, but I wanted to know if I could maybe find an answer here. How to make my Javascript-script work in the android environment ?
Thanks in advance
Audio Initialization
Javascript function for window.onblur and window.onfocus
Enabled Javascript in MainActivity.Java
I've suspected for a while that my website doesn't work on Android WebView. Trying to debug this, I've installed Android Studio, and fired up some emulators. Sure enough, my website does not behave properly when viewed in WebView in the emulator.
But, I'm not an app developer, and I've never used Android Studio before. Predictably, all of the docs are focused on creating apps :).
How can I debug what's happening in the WebView? Do I need to create an empty project? Is there some DevTools equivalent? Or maybe some way to dump what it's doing to a log file?
I just need a starting point, and am happy to read docs if I'm pointed in the right direction.
I am creating an Office App (Outlook addin/web-app). While debugging, the app is always launching in IE desktop version. I want to start debugging the app in non-IE browser - FF, Chrome. I couldn't find any settings related to this within the project. How can I achieve that?
Any help will be appreciated.
Thanks.
Microsoft Visual Studio: Currently you will be able to debug you project in Visual studio 2015 or later only using IE browser. By "debugging in VS" I meant you set breakpoints directly in IDE for your JS code. As of VS2017 RC release you will be able to debug your project in two browsers (IE and Chrome), even today, Edge coming as well. Please see Client-side debugging of ASP.NET projects in Google Chrome.
If you need just to start your project in yet another browser (Chrome, Edge, Firefox) you need to use this article to switch your Browser in IDE: Testing with an Alternate Browser. After you switch to another browser, please restart VS; I have tried this myself and it works, your project will be started in the browser of your choice by pressing F5. With this approach you would need to debug your code with development tools of this browser (F12) or some 3rd party extension.
Visual Studio Code: (VS community edition) Looks like have support for debugging your code in Chrome and setting up break points directly in VS Code IDE. Please refer to Introducing Chrome Debugging for VS Code. You would require to install VS extension as described in the article.
Other options: If you are using yet another Tool please refer to the following blog about different methods of debugging office add-ins: The many ways of office web add-ins debugging
I finally figured out the solution. Select the Manifest project, hit F4 to open Properties window. Choose your preferred Start Action. Here is a screenshot.
Start Action image
I just looked on the Getting Started: Building a Chrome Extension Page, and I couldn't get the One-Click Kittens extension to work on my version of canary (31.0.1605.1 canary Aura). If I right click on it and click on "Inspect popup", the extension shows up with a developer window, but it won't work if I just click on it.
It works in Chrome Dev Version 30.0.1568.2, though.
I downloaded all the files from the website.
Is it a problem with the code, Google Chrome canary, or something else?
Thanks.
I've got a typescript game and source maps are successfully loaded in chrome and the typescript file breakpoints get hit in chrome.
However breakpoints in VS2012 fail to get hit when debugging from VS 2012.
Any ideas what to do to get this working?
It only works in IE 9 and IE 10 from Visual Studio. If you use the sourcemaps, you can get debug in the Chrome Canary browser.
Use IE 10+ instead! thats all I can get to work right now