0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Magic Leap MagicScript About debugging using the web inspector with Google Chrome.

Last updated at Posted at 2019-06-11

#In the case of magic-script-cli v.2.2.1 or later, this correspondence is not necessary.

Prepare
Magic Leap One (Lumin OS v0.96.1)
https://www.magicleap.com/magic-leap-one

mlsdk v.0.21.0
https://creator.magicleap.com/downloads/lumin-sdk/overview

magic-script-cli v2.2.0 patch
https://www.npmjs.com/package/magic-script-cli

Example Code

Change app.js
Web inspector can not debug without overriding updateLoop.

export class App extends LandscapeApp {
  onAppStart () {
     ...  
  }
  
  // Known Issues: Web Inspector does not work unless the updateLoop function is present in source
  updateLoop(delta) {
    return true;
  }
}

Build

magic-script build -i

Run

magic-script run --port=10000

Reference

MagicScript Inspector Client
https://www.magicscript.org/docs/inspector-client

Lumin OS v 0.96.0 Release Note
https://creator.magicleap.com/learn/guides/lumin-os-0-96-0-release-notes

Thanks!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?