(original poster: Lachesis)
A built-in debug log. Messages would be appended by . "!LEVEL! Debug text" and could be viewable in-game perhaps as a part of the F6 or F11 functionality (what does F5 do in-editor? That's another possibility). . "!ERROR!" condition stuff could even optionally have the log pop up automatically or whatever. Before some smart-ass idiot says something about using FWRITE, remember that you can only have one file open for reading OR writing at any time, which may already be used in the code I want to debug, and that adds the extra step of going to look at an external file when this would be much more convenient integrated directly into MZX itself. *"" and WAIT 20 that I have to go back and remove manually when I'm done is getting old.
Report ID | 400 | Title | Built-in Debug Log |
Product | MegaZeux Feature Requests | Status | Approved (Severity 1 - Low) |
Version | 2.92 | Fixed in | - |
Page 1 of 1
Report ID #400: Built-in Debug Log
Page 1 of 1
Replies (1 - 8)
#2
ajs
Posted 28 December 2011 - 11:51 PM
Updating status to: Confirmed
Updating severity to: 1 - Low
Updating version to: GIT
There was some more discussion about this feature on the board thread that was lost in translation.
Anyway, I think I suggested just printing all comments to a second "debugging" window (or stderr for Linux/etc. systems) if MZX was started with a specific command line parameter. This way, we don't have to butcher comments with magic prefixes, and we don't have to break the world format.
OTOH, it does mean EVERY comment is printed, but hopefully people use comments sparingly in production robotic code, because as everybody knows, MZX consumes CPU cycles decoding them, which can slow your game down!
--ajs.
Updating severity to: 1 - Low
Updating version to: GIT
There was some more discussion about this feature on the board thread that was lost in translation.
Anyway, I think I suggested just printing all comments to a second "debugging" window (or stderr for Linux/etc. systems) if MZX was started with a specific command line parameter. This way, we don't have to butcher comments with magic prefixes, and we don't have to break the world format.
OTOH, it does mean EVERY comment is printed, but hopefully people use comments sparingly in production robotic code, because as everybody knows, MZX consumes CPU cycles decoding them, which can slow your game down!
--ajs.
#3
Lachesis
Posted 29 December 2011 - 07:46 AM
Updating status to: Approved
Updating version to: None
Updating version to: None
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#4
Lachesis
Posted 17 May 2012 - 08:14 AM
Updating version to: GIT
IPB knocked off the version when I Approved this and I didn't even notice... what a bother. Doubt this will make 2.84.
IPB knocked off the version when I Approved this and I didn't even notice... what a bother. Doubt this will make 2.84.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#5
Lachesis
Posted 21 December 2012 - 10:17 AM
I'll look at it tomorrow, grumble grumble
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#6
Lachesis
Posted 06 September 2017 - 09:07 PM
Updating version to: 2.91
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#7
Lachesis
Posted 15 October 2017 - 09:29 PM
Updating version to: 2.92
(was actually supposed to be 2.92)
(was actually supposed to be 2.92)
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#8
Lachesis
Posted 24 February 2018 - 09:14 PM
- console_log=
- disable
- stdout (all logging goes to stdout/stderr)
- ui (separate log UI that can be displayed with `; INFO()/WARN()/etc macros redirect here)
- overlay (write over MZX display- intended for console platforms; INFO()/WARN()/etc macros redirect here)
- disable
- console_ui_backlog=
- 25..10000 (only for the ui setting; overlay would force to 25)
- console_log_comments= (log Robotic . comment commands during testing)
- none
- tagged (DEBUG:/INFO:/WARN:/ERROR:/etc; better name?)
- all
- none
console_log:
- Is a console platform?
- -> Always `overlay`
- Is debug enabled?
- -> Always `stdout`
- -> `ui`
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
#9
Lachesis
Posted 24 February 2018 - 10:30 PM
Alternative: have a compile-time config option to enable graphical debug()/info()/warn() and enable it by default for console releases. For other platforms, try to open a console if there isn't already one. Getting the config file to these functions would be difficult or annoying.
This removes the need for the first two config file options in the previous post.
This removes the need for the first two config file options in the previous post.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository
Page 1 of 1
0 User(s) are reading this issue
0 Guests and 0 Anonymous Users
Powered by IP.Tracker 1.3.2 © 2025 IPS, Inc.