No code displayed in Edge/Chrome JS debugging window

Hi!

When I debug JavaScript code in Aras, the code doesn't appear in the debugging window. When I reset the debugging window to the default settings (F1/Restore defaults and reload in Chrome), it works for some time but then it stop to work again.

I'd like to note that I didn't have this problem before, so I'm wondering if anyone else had the same problem as I did. Version 12.0 sp12.

Parents
  • Hi Krepop,

    I have seen this behavior too, but not always. Sometimes code is shown well in the debugger, sometimes not at all or not reliable.

    From my experience this depends on "where" you put the debugger statement. At certain positions it will not work reliable, especially when your code contains functions, classes, async code...

    I assume this is caused by the way browsers load the code. I am not an expert on JS, but the code is not always loaded straight from top to button (hoisting). General functions declarations work different than function expressions. So for some Methods debugger works excellent and others don´t work at all. My "solution" is to try various positions for the debugger statement.

    But that´s just my theory, could be completely wrong. If anyone one knows more, please let me know too!

  • Hi Angela,

    Thank you for sharing your insights. I've tried moving the debugger statement to different positions within the code, but unfortunately, the issue persists. It's worth mentioning that I'm also experiencing this in the 2023 Release Build 14.0.9.36244. I'll continue investigating and if I come across a solution, I'll make sure to post it here to help anyone else facing a similar problem.

Reply
  • Hi Angela,

    Thank you for sharing your insights. I've tried moving the debugger statement to different positions within the code, but unfortunately, the issue persists. It's worth mentioning that I'm also experiencing this in the 2023 Release Build 14.0.9.36244. I'll continue investigating and if I come across a solution, I'll make sure to post it here to help anyone else facing a similar problem.

Children
No Data