Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Debugging

eyeyunianto edited this page Nov 13, 2013 · 1 revision

IGN SDK API Debugging is some API that can be used to debugging function

Remote Debugging

With remote debugging in IGN SDK can make some port open and make remote from another system. Remote debugging can make with :

  • Direct Command with option -r

$ignsdk -p <project_directory> -r <port>

example : $ignsdk -p example_project -r 7171

On example we can look that port 7171 will set to be remote debugging port when we run the example_project

  • Add some configuration on IGN SDK Manifest Some manipulation script on IGN SDK manifest can be run remote debugging. That configuration can be insert on config part of IGN SDK manifest. How to insert remote debugging on IGN SDK manifest like below
"config" : {
"debug" : true,
"debug-port" : 7171,
"websecurity" : true,
"name" : "IGNSDK Example"
}

On example we set debugging port 7171 on configuration.

  • Add IGN SDK Remote Dev script on application We can insert remote debugging mode IGN SDK on application script to script location. We must declarated Remote Debugging API with ign.setDevRemote (port_that_used). Full script implementation can be shown below.
<!doctype html>
<html>
  <head>
  <script type=”text/javascript”>ign.setDevRemote(7171);</script>
  </head>
   <body>
    <a href=”fs.html”>File System</a><br />
   </body>
</html>

You can access web browser (chrome/midori) to local address http://localhost:port example http://localhost:7171. Remote debugging also can be access from url (can be remote from another computer or gadget) example http://192.168.0.104:7171.

Full article can be found on Remote Debugging

Clone this wiki locally