Rider Javascript chrome debugging not working

Answered

Hello,

When debuggiing Javascript for a .NET MVC 5 application, the breakpoint set in Javascript are never hit.

I have the plugin in Rider enabled.

I have the chrome extension installed in the browser which I have used with WebStorm

( plugin  JetBrains IDE Support 2.0.9).

I configured the Run/Debug Configuraiton to use port 45003 and checked the "with Javascript Debugger" checkbox.

However,  my breakpoint is never hit in the js code.

Can you help please?

Thanks,

bruce radtke

 

0
1 comment

Hi, Bruce.

You need to add one more run configuration for javascript debugger.

To do this

1) go to the menu Run | Edit Configuration
2) in that window, you need to create "JavaScript Debug" configuration 

  

You need to select Browser = Chrome and URL = Your app URL

After that, you will see this configuration in the drop-down in the Top Right Corner

3) Run debugger session of your backend application (Default).

4) Run debugger session of the created configuration (JavaScript Debugger)

 

Breakpoints should work.

I hope, this helps.
But if you have other questions, please let me know.

 

Kind Regards,

Sofya

0

Please sign in to leave a comment.