How to debug PWA Application

Hi,

I have a simple question, Why I can't debug the PWA application?

I did this:

  1. The application is in debug mode
  2. I marked one line with break point
  3. When I run the application with debug my red bullet is changed to bullet with cross (it seems to be omitted in debug, I don't know why) and the chrome browser is opened in dev tools mode but the debug not stop on the break point marked line.

Why, what I did wrong?

There shouldn't be a difference between debugging a PWA and a regular web client application.
Do you compile in release or debug mode. When in debug mode, when you open the browser console on the sources tab, you should see the involved files and you should be able to set breakpoints from there in your Pascal code you see in the browser.

@brunofierens

"Do you compile in release or debug mode."

Yes as I said in Debug mode.

"When in debug mode, when you open the browser console on the sources tab, you should see the involved files and you should be able to set breakpoints from there in your Pascal code you see in the browser"

This is not this way, if I add breakpoints in Delphi the browser should open in dev mode (and it works) and breakpoints from Delphi should go to the browser source breakpoints. It worked in the past but now not.

I retested this here but I see the breakpoints being added.
Is this the latest TMS WEB Core version? If so, what are exact steps to reproduce?

Ok ... I found the cause ... I changed mode from Debug to Release, clear browser cache ... and change from Releas to Debug ... clear browser cache and now is working in Debug mode. It was a problem with browser cache I assume.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.