[Pas2js] pas2js app debugging

Michael Van Canneyt michael at freepascal.org
Fri Feb 23 09:47:08 CET 2018



On Fri, 23 Feb 2018, Mr Bee via Pas2js wrote:

> Hi,
>
> First of all, thank you for making pas2js. It's a great move to make Pascal
> becomes one-stop programming language.
>
> I've tried pas2js a while ago and experimented with it a bit. I have some
> demo ideas but then duty called. So, I had to abandon it and then I forgot
> it. Until I saw pas2js announcement in the mailing list.
>
> My question is… I saw on TMS' WebCore demo that it can debug WebCore-based
> web app by the pascal code instead of js code. Does that work with FPC's
> pas2js as well? Or do we need TMS' WebCore to have that feature?

You don't need TMS WebCore for that. You just need to tell the compiler
to create a source map, and upload the source map together with the program
to the website. Then it will work automatically in the browser.

This is something which should indeed be described in the WIKI, I will try
to add something about it this weekend.

>
> I hope the next FPC stable release would include pas2js binary so we can
> use it right out of the box.

That is our aim.

But the download of snapshots will get you a long way: (see wiki)
http://wiki.freepascal.org/pas2js#Snapshots
a binary for the most popular targets is available.

Michael.


More information about the Pas2js mailing list