[Pas2js] Inspect variables and fields in the browser console?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 23 12:37:12 CEST 2022


On Thu, 22 Sep 2022 15:14:48 +0000 (UTC)
Luca Olivetti via Pas2js <pas2js at lists.freepascal.org> wrote:

>[...]
> >> Or to inspect fields in the browser debugger?  
> > 
> > The latter. When I put a breakpoint inside a procedure, I can only
> > see local variables.  
> 
> 
> So, is it possible or not to inspect fields defined in my 
> TBrowserApplication?

It is possible.
I assume, your program contains a 
var
  Application: TBrowserApplication;

For example in Chrome when paused on a breakpoint look at the right side
under Watch and Breakpoints there is Scope.
Under Scope there is Local and Closure. The Application should be
there. Depends on where your breakpoint is.

Mattias


More information about the Pas2js mailing list