Showing posts with label Debugger. Show all posts
Showing posts with label Debugger. Show all posts

Wednesday, November 02, 2016

IntelliJ Ultimate Debugging JavaScript from the LightBend Activator/Play Framework

Symptom

You tried to debug a {java | type|}script in Chrome browser and it does not fire a breakpoint.

You have already made sure that JetBrain extension is installed in Chrome and configured right.

You've also added the JavaScript debugging configuration, and the web page launches (e.g., http://localhost:9000)

Fix

There is one more missing piece to this puzzle. You need to map the URL for where the scripts come from. This is clearly documented in the IntelliJ documentation, but nevertheless, it is not intuitive enough that it took a while for me to find out.

The key is that you need to type in the Remote URL in the Remote URL list. This is NOT OPTIONAL for Play users. If you are running the "out of the box" configuration of Play framework, and putting in your *.js under the "public" directory somewhere, then all you need to do is to just type in /assets (will become http://assets after you save it without any ill effect) where the public folder is in the list. Save it and any JavaScript or Typescript (with a map) can be debugged.

Enjoy!





Wednesday, January 30, 2013

Visual Studio Debugger Slow To Start Up Due To Symbol Loads

Symptom:

Suddenly when you are debugging your application the application startup on your Visual Studio begins to crawl down to 20-30 seconds or even longer, as it starts loading symbols from all over the places for Microsoft's .NET Framework library and GACs etc.

Possible (But May Not Be Exact) Cause:

You or someone in the team have accidentally enabled Symbol loading from All Modules.

Try If Above Applies

Try this to see if it makes any difference.

On your Visual Studio, go to Debug and then Select Option and Settings...

On the left panel go down to where it says Symbols under the Debug section.

Select "Only Specified Modules" and you do not need to specify any modules at all if you are only interested in debugging modules that are in your own project.