[fpc-devel] First pas2js public release

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Dec 16 17:50:46 CET 2017


On Sat, 16 Dec 2017 17:36:14 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

>[...]
> * Debugging:
> 
> Obviously, the browser debugger can be used to debug the Javascript.
> But there is more: the compiler can emit a source map, and this means that
> if the browser finds the source file, it will display the original source
> file instead of the javascript. You can debug Object pascal in the browser.

Hint: Passing -Jminclude to pas2js will include the Pascal sources in
the map, so you don't need to worry about paths.

Mattias



More information about the fpc-devel mailing list