#1 2018-06-12 15:53:13

usernametaken
Member
Registered: 2018-06-12
Posts: 1

Missing DebuggerInit.js from Spidermonkey45Binding

I am trying to run the Spidermonkey45Binding example.

I downloaded the latest version of mORMot today.

Compiles fine with XE 10.2.3 - There are some errorrs with the ufrmSM45Demo.dfm
Property LCLVersion does not exists and there is a problem woth the format of mSource.Lines.Text.

I fixed this by editing the .dfm directly.

So far when running it I get an error:
File not found: DebuggerInit.js

It is looking for it a few directories up... (definitely the wrong path)

But the biggest problem is that the DebuggerInit.js is not in the distribution/mORMot-master.zip.
Googling it... I can't find it anywhere.


procedure TfrmSM45Demo.DoOnJSDebuggerInit(const aEngine: TSMEngine);
begin
  aEngine.EvaluateModule(
  {$IFDEF MSWINDOWS}
    '..\..\..\..\DebuggerInit.js'
  {$ELSE}
    '../../../../DebuggerInit.js'
  {$ENDIF}
  );
End;

Last edited by usernametaken (2018-06-12 15:57:18)

Offline

#2 2018-06-25 14:31:23

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,534
Website

Re: Missing DebuggerInit.js from Spidermonkey45Binding

I remove DebuggerInit from a demo - it's not required for demonstration purpose. The real life example can be found here but it's too complex for a demo app.

Offline

Board footer

Powered by FluxBB