-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation to implement servers #32
Comments
@positive07, there is no detailed documentation, but there are couple of places you can check. At the bottom of mobdebug.lua, there is a list of commands and their descriptions (this should answer at least some questions). I think we need to settle on the terminology as I'm not sure what you call "server". The debugger has two parts: one part runs in the application (this is instantiated by calling The client initiates the debugging session, but all commands are sent from the controller to the client and the client only sends the information back. I think the easiest way to get some basic information about the sequence of commands and their responses is to get ZeroBrane Studio, add The responses are usually |
All right! Now I understand some more
Yes, that's what I call a server and what I'm currently trying to implement in JavaScript. So let me ask some questions (I will install ZeroBrane and do what you proposed but asking can't hurt):
Well I guess I'll install ZeroBrane and try to find this stuff. Will report back here all my findings so that people with some of this doubts can come back here and maybe find it useful! Thanks @pkulchenko I really appreciate your help! |
Well ZeroBrane is not that helpful either, I want to know more about the underlying stuff, ZeroBrane shows which functions of MobDebug it calls, and what are the parameters received. I would like to know what MobDebug sends and receives. So for example I won't be working with the Lua library, that is why the executed functions and the return values of those functions are not actually helpful to what I'm trying to do. I think I'll keep on looking at the source code. |
There's another approach you might like. You can do debugging session and record the commands with network sniffer. This is mainly Wireshark. Then you look at the pure network conversation between the client and controller in that same Wireshark |
It is great to look at comments to get the big picture. I am used to From what I have read, And I have to setup Is above statement correct? |
That's correct. |
Is there some handy documentation on how to implement the server? What commands should be sent and how each part relates to each other.
I have been reading the source but I have to look for commands all over the place I have found a few but I'm not sure of what they do and what the arguments are (Please correct this information if something is wrong)
Some more questions:
SET[B/W]
andDEL[B/W]
are permanents)PS: I wanna make a debugger for Atom, but I want to use JavaScript to create the server so there is no requirement for Lua to be installed. The server needs to be compatible with the MobDebug commands.
The text was updated successfully, but these errors were encountered: