SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 18/01/2018, 11:20 AM   #11
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,768
Reputation: 1301
Default Re: Loaded AMX viewer

Quote:
Originally Posted by Crystallize View Post
What do you want to accomplish with this I don’t get it what would be used for
It would allow pausing of execution and stepping through code line-by-line, viewing variable values, etc. Visual Studio does this for C++/C# and a few other languages, vscode does it for JavaScript/TypeScript, Go and others. Check out some examples by searching for "interactive debugging".
__________________



[HLF]Southclaw is offline   Reply With Quote
Old 18/01/2018, 03:34 PM   #12
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,538
Reputation: 2974
Default Re: Loaded AMX viewer

Quote:
Originally Posted by Misiur View Post
Hello again!
So, I've tried to keep my activity on the project down low, but now I see 7 stars on github so I guess it ain't secret anymore.
Summary of my journey so far, with massive amount of irrelevant info and rambling in a quote block if you want to read, otherwise skip:


Now I have questions to people interested in this project, in order of importance:

1. How would you like the plugin to communicate with external programs (for example a GUI I mentioned in first post)? Named pipes, sockets, zeromq, or ******'s protobuf?
Y_Less expressed support for sockets on discord, and I'm leaning towards it as well.
2. I'm wondering if updating the code I copied from amx_Exec is good. This is plugin for amx debugging, but fixing and/or introducing new VM bugs/features (such as now adding "#emit" macro opcodes support) might obstruct ours vision
3. I removed JIT and ASM sections of the VM. Should I restore JIT sections? I think when someone runs a debugger, they don't expect the best available performance option, but I'm certain there are JIT specific runtime bugs.
4. Is the samp's implementaion of amx VM for linux (the one with opcode relocation) relatively bug-free? What I mean by that is - does the relocation introduce any new bugs?
5. I would like to rewrite required by amx_Exec "#define"'s with C++ templates (remember that I want to learn C++ basics with this project) - any objections?
5a. There's an alternative, a nuclear option - reimplementing VM completely in C++, like sourcepawn. I don't lean towards it, but it'd be good to know your opinions.
1) I agree with Southclaws, some sort of generic library.

2) Don't update. It is hard to fix code issues on a different VM. I'd say don't even fix VM bugs. If the SA:MP server has a bug, leave it in so that at least te debugging behaviour is consistent.

3) The JIT isn't used in the SA:MP server, the JIT plugin is a totally separate reimplementation (I think).

4) No idea sorry. I don't know of anything caused by the two different versions, but having the code in this plugin as close to the code in the different servers is good for debugging. Otherwise, the plugin may perform differently and say good code isn't (or vice-versa).

5) See 2 and 4.

5a) See 5.
Y_Less is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tool/Web/Other] SA:MP Sprite Viewer V1.0 LiamM Tools and Files 4 20/02/2017 09:59 AM
Log viewer for CP TyreseFlex Scripting Help 4 03/01/2017 03:51 AM
[Tool/Web/Other] [APP] Sprite Viewer [v1.0] Rhayziin Lançamentos/Releases 14 09/03/2015 10:04 PM
[Tool/Web/Other] [APP] Sprite Viewer [v1.0] Rhayziin Tools and Files 8 08/03/2015 08:00 PM
GTA SA Viewer Kyle Everything and Nothing 4 02/01/2013 05:02 AM


All times are GMT. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.