[Pas2js] pas2js app debugging
Mr Bee
pak.lebah at yahoo.com
Sat Feb 24 04:32:02 CET 2018
2018-02-23 15:47 GMT+07:00 Michael Van Canneyt <michael at freepascal.org>:
>
>
> 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.
>
Great news! It needs to be shown off! :)
> This is something which should indeed be described in the WIKI, I will try
> to add something about it this weekend.
Yes, please.
> 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.
>
Great!
> 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.
I found 2 repos, one is yours Michael and the other is on ftpmaster. It
seems that v.0.9 on ftpmaster requires FPC trunk, it fails to work with FPC
stable, also missing some files (can't include rtl.js for instance). While
yours can work with FPC stable. Is it correct? If it is, I hope next
version would work with FPC stable. FYI, I'm now using pas2js with FPC
v.3.0.4 on Linux Ubuntu.
My next question is… is it possible to create something like CRT unit to
work on browser using pas2js? I'd like to see Pascal newbies be able to
create classic Pascal program (with simple write/ln and read/ln calls) that
works in the browser.
I have a project, just for fun. It's WebCRT unit and it's available on
github here: https://github.com/pakLebah/webCRT
If it's possible to create something similar to it working on browser, I'd
like to try it. What do you think? Any hints or suggestions?
Thank you.
--
Regards,
–Mr Bee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20180224/0ff41ca6/attachment.html>
More information about the Pas2js
mailing list