GithubHelp home page GithubHelp logo

labbbirder / luadoctor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bbbirder/luadoctor

0.0 0.0 0.0 44.02 MB

wireless debug tools for cocos-lua,published for macos & windows.

License: MIT License

JavaScript 99.89% HTML 0.11%

luadoctor's Introduction

LuaDoctor

a wireless debug tool for game script, published for macos & windows.

already support:

  • cocos-lua

will support:

  • cocos-js
  • unity-lua
  • unity-js

Abilities

real-time log report

Logs will be uploaded into console view when game is running on mobile phone.

error recognize

Errors will be uploaded and shown in red.

logs management

You can filter, toggle and watch logs in details easily.

real-time breakpoint

There are two ways to make a breakpoint:

  • modify source
     insert LuaDoctor.BreakPoint(); into where you want to make a breakpoint,such as:
function foo(...)
  ...
  print("enter break point.");
  LuaDoctor.BreakPoint();--lua will be paused when reach this line
  print("continue.");
  ...
end
  • via console
     You can toggle breakpoint on certain line by clicking on line-number of source code view

when game enters breakpoint,scoop information will be shown on console view, and you can click continue button to pass the current breakpoint.

fetch call stack traceback

Every log can be located on certain line and you can either open third-part editor.

fetch scoop

When reached break point,local vairent and upvalue can be saw in scoop view.

eval script on the remote

You can run certain string as codes and gain the result every time you want.

running state monitor

Running state shows the mem-use curve.You can run a gc procedure manually by clicking a button.

source upload

one button to upload all modified files onto mobile phone.(hotfixing procedure will be ignored)

Why Useful

If your project runs on simulator successfully and you may want to test it on a real mobile phone. This is when you may meet troubles soon.

LuaDoctor was designed for the common issues of mobile testing,which are listed as following:

  • hard to view real-time log
  • unable to make breakpoint
  • unable to view call stack traceback
  • unable to view scoop information
  • unable to monitor real-time running state
  • unable to eval a testing script and gain the useful result
  • must build&install project again every time script modified

Tutorial

Only several steps needed to start the wonderful debugging experience.

On Game Project:

  1. copy supportting files into game project
  2. specify IP address of LuaDoctor in config.lua
  3. invoke import "support.init" in initialization code

On LuaDoctor:

  1. select local source folder

the last,run your game on mobile phone.

Download

Author:bbbirder

Thanks for reading this page.

Thanks for supporting LuaDoctor.

Glad to get your feedback.

oicq:502100554

wechat:bbbirder

email:[email protected]

luadoctor's People

Contributors

bbbirder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.